cJSON_ParseWithOpts: Extract pasrse with internal_configuration

Also introduces a allow_data_after_json property in the internal
configuration.
This commit is contained in:
Max Bruckner
2018-02-01 01:24:36 +01:00
parent 772376ed92
commit 47f4337604
13 changed files with 64 additions and 51 deletions

View File

@ -27,7 +27,7 @@
static void assert_print_string(const char *expected, const char *input)
{
unsigned char printed[1024];
printbuffer buffer = { 0, 0, 0, 0, 0, { 0, 0, 0, 0, 0 } };
printbuffer buffer = { 0, 0, 0, 0, 0, { 0, 0, 0, 0, 0, 0 } };
buffer.buffer = printed;
buffer.length = sizeof(printed);
buffer.offset = 0;