default_configuration: Macro for the internal_configuration defaults

This commit is contained in:
Max Bruckner committed 2018-03-25 23:32:03 +02:00
1 parent ba8fe0f479
commit 515d11f55a
12 files changed
+33 -31

No files matched your search

+2 -2
View File
@@ -428,7 +428,7 @@ static void ensure_should_fail_on_failed_realloc(void)
static void skip_utf8_bom_should_skip_bom(void)
{
const unsigned char string[] = "\xEF\xBB\xBF{}";
parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0 } };
parse_buffer buffer = { 0, 0, 0, 0, default_configuration };
buffer.content = string;
buffer.length = sizeof(string);
buffer.configuration = global_configuration;
@@ -440,7 +440,7 @@ static void skip_utf8_bom_should_skip_bom(void)
static void skip_utf8_bom_should_not_skip_bom_if_not_at_beginning(void)
{
const unsigned char string[] = " \xEF\xBB\xBF{}";
parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0 } };
parse_buffer buffer = { 0, 0, 0, 0, default_configuration };
buffer.content = string;
buffer.length = sizeof(string);
buffer.configuration = global_configuration;