Source release 14.0.0
This commit is contained in:
4
third_party/jsmn/README.md
vendored
4
third_party/jsmn/README.md
vendored
@@ -153,9 +153,9 @@ If something goes wrong, you will get an error. Error will be one of these:
|
||||
* `JSMN_ERROR_NOMEM` - not enough tokens, JSON string is too large
|
||||
* `JSMN_ERROR_PART` - JSON string is too short, expecting more JSON data
|
||||
|
||||
If you get `JSON_ERROR_NOMEM`, you can re-allocate more tokens and call
|
||||
If you get `JSMN_ERROR_NOMEM`, you can re-allocate more tokens and call
|
||||
`jsmn_parse` once more. If you read json data from the stream, you can
|
||||
periodically call `jsmn_parse` and check if return value is `JSON_ERROR_PART`.
|
||||
periodically call `jsmn_parse` and check if return value is `JSMN_ERROR_PART`.
|
||||
You will get this error until you reach the end of JSON data.
|
||||
|
||||
Other info
|
||||
|
||||
4
third_party/jsmn/example/jsondump.c
vendored
4
third_party/jsmn/example/jsondump.c
vendored
@@ -5,11 +5,11 @@
|
||||
#include <errno.h>
|
||||
#include "../jsmn.h"
|
||||
|
||||
/* Function realloc_it() is a wrapper function for standart realloc()
|
||||
/* Function realloc_it() is a wrapper function for standard realloc()
|
||||
* with one difference - it frees old memory pointer in case of realloc
|
||||
* failure. Thus, DO NOT use old data pointer in anyway after call to
|
||||
* realloc_it(). If your code has some kind of fallback algorithm if
|
||||
* memory can't be re-allocated - use standart realloc() instead.
|
||||
* memory can't be re-allocated - use standard realloc() instead.
|
||||
*/
|
||||
static inline void *realloc_it(void *ptrmem, size_t size) {
|
||||
void *p = realloc(ptrmem, size);
|
||||
|
||||
Reference in New Issue
Block a user