mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-09-08 08:19:53 +00:00
default_configuration: Macro for the internal_configuration defaults
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user