mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-14 10:20:05 +00:00
cJSON_ParseWithOpts: Extract pasrse with internal_configuration
Also introduces a allow_data_after_json property in the internal configuration.
This commit is contained in:
1 parent
772376ed92
commit
47f4337604
13 files changed
+64
-51
No files matched your search
@@ -45,7 +45,7 @@ static void assert_is_number(cJSON *number_item)
|
||||
|
||||
static void assert_parse_number(const char *string, int integer, double real)
|
||||
{
|
||||
parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0, 0, 0 } };
|
||||
parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0, 0, 0, 0 } };
|
||||
buffer.content = (const unsigned char*)string;
|
||||
buffer.length = strlen(string) + sizeof("");
|
||||
|
||||
|
||||
Reference in new issue
Block a user