FreeWRL/FreeX3D
3.0.0
|
The structure used to configure a JSON parser object. More...
Data Fields | |
JSON_parser_callback | callback |
Pointer to a callback, called when the parser has something to tell the user. More... | |
void * | callback_ctx |
Callback context - client-specified data to pass to the callback function. More... | |
int | depth |
Specifies the levels of nested JSON to allow. More... | |
int | allow_comments |
To allow C style comments in JSON, set to non-zero. | |
int | handle_floats_manually |
To decode floating point numbers manually set this parameter to non-zero. | |
JSON_malloc_t | malloc |
The memory allocation routine, which must be semantically compatible with malloc(3). More... | |
JSON_free_t | free |
The memory deallocation routine, which must be semantically compatible with free(3). More... | |
The structure used to configure a JSON parser object.
Definition at line 121 of file cson_amalgamation_core.c.
JSON_parser_callback JSON_config::callback |
Pointer to a callback, called when the parser has something to tell the user.
This parameter may be NULL. In this case the input is merely checked for validity.
Definition at line 126 of file cson_amalgamation_core.c.
void* JSON_config::callback_ctx |
Callback context - client-specified data to pass to the callback function.
This parameter may be NULL.
Definition at line 131 of file cson_amalgamation_core.c.
int JSON_config::depth |
Specifies the levels of nested JSON to allow.
Negative numbers yield unlimited nesting. If negative, the parser can parse arbitrary levels of JSON, otherwise the depth is the limit.
Definition at line 136 of file cson_amalgamation_core.c.
JSON_free_t JSON_config::free |
The memory deallocation routine, which must be semantically compatible with free(3).
If set to NULL, free(3) is used.
If this is set to a non-NULL value then the 'alloc' member MUST be set to the proper allocation counterpart for this function. Failure to do so results in undefined behaviour at deallocation time.
Definition at line 165 of file cson_amalgamation_core.c.
JSON_malloc_t JSON_config::malloc |
The memory allocation routine, which must be semantically compatible with malloc(3).
If set to NULL, malloc(3) is used.
If this is set to a non-NULL value then the 'free' member MUST be set to the proper deallocation counterpart for this function. Failure to do so results in undefined behaviour at deallocation time.
Definition at line 155 of file cson_amalgamation_core.c.