default_configuration: Macro for the internal_configuration defaults

This commit is contained in:
Max Bruckner
2018-02-03 16:40:49 +01:00
parent 99ad8cc64b
commit 69f8bb7778
12 changed files with 33 additions and 31 deletions
+2 -2
View File
@@ -429,7 +429,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;
@@ -441,7 +441,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;