|
|
@ -8,7 +8,7 @@
|
|
|
|
static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
|
|
|
|
static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
|
|
|
|
jsmntok_t *tokens, size_t num_tokens) {
|
|
|
|
jsmntok_t *tokens, size_t num_tokens) {
|
|
|
|
jsmntok_t *tok;
|
|
|
|
jsmntok_t *tok;
|
|
|
|
if (parser->toknext >= (int) num_tokens) {
|
|
|
|
if (parser->toknext >= num_tokens) {
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tok = &tokens[parser->toknext++];
|
|
|
|
tok = &tokens[parser->toknext++];
|
|
|
|