mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-21 11:30:09 +00:00
Put format into internal_configuration
This commit is contained in:
1 parent
677f0cb1bb
commit
27977adc93
13 files changed
+51
-49
No files matched your search
+3
-2
@@ -32,13 +32,14 @@ static void assert_print_value(const char *input)
|
||||
{
|
||||
unsigned char printed[1024];
|
||||
cJSON item[1];
|
||||
printbuffer buffer = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } };
|
||||
parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } };
|
||||
printbuffer buffer = { 0, 0, 0, 0, 0, { 0, 0, 0, 0 } };
|
||||
parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0, 0 } };
|
||||
buffer.buffer = printed;
|
||||
buffer.length = sizeof(printed);
|
||||
buffer.offset = 0;
|
||||
buffer.noalloc = true;
|
||||
buffer.configuration = global_configuration;
|
||||
buffer.configuration.format = false;
|
||||
|
||||
parsebuffer.content = (const unsigned char*)input;
|
||||
parsebuffer.length = strlen(input) + sizeof("");
|
||||
|
||||
Reference in new issue
Block a user