mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-06 15:51:31 +00:00
Change name from Configuration to Context
This commit is contained in:
1 parent
464c9b544c
commit
3b0d37faf3
17 files changed
+540
-537
No files matched your search
@@ -28,12 +28,12 @@ static void assert_print_number(const char *expected, double input)
|
||||
{
|
||||
unsigned char printed[1024];
|
||||
cJSON item[1];
|
||||
printbuffer buffer = { 0, 0, 0, 0, 0, default_configuration };
|
||||
printbuffer buffer = { 0, 0, 0, 0, 0, default_context };
|
||||
buffer.buffer = printed;
|
||||
buffer.length = sizeof(printed);
|
||||
buffer.offset = 0;
|
||||
buffer.noalloc = true;
|
||||
buffer.configuration = global_configuration;
|
||||
buffer.context = global_context;
|
||||
|
||||
memset(item, 0, sizeof(item));
|
||||
cJSON_SetNumberValue(item, input);
|
||||
|
||||
Reference in new issue
Block a user