Lines Matching refs:tokens
37 jsmntok_t *tokens, size_t num_tokens) { in jsmn_alloc_token() argument
42 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
66 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_primitive() argument
94 if (tokens == NULL) { in jsmn_parse_primitive()
98 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive()
115 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_string() argument
128 if (tokens == NULL) { in jsmn_parse_string()
131 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string()
182 jsmntok_t *tokens, unsigned int num_tokens) { in jsmn_parse() argument
196 if (tokens == NULL) { in jsmn_parse()
199 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse()
203 tokens[parser->toksuper].size++; in jsmn_parse()
213 if (tokens == NULL) in jsmn_parse()
220 token = &tokens[parser->toknext - 1]; in jsmn_parse()
233 token = &tokens[token->parent]; in jsmn_parse()
237 token = &tokens[i]; in jsmn_parse()
250 token = &tokens[i]; in jsmn_parse()
259 r = jsmn_parse_string(parser, js, len, tokens, num_tokens); in jsmn_parse()
262 if (parser->toksuper != -1 && tokens != NULL) in jsmn_parse()
263 tokens[parser->toksuper].size++; in jsmn_parse()
271 if (tokens != NULL && parser->toksuper != -1 && in jsmn_parse()
272 tokens[parser->toksuper].type != JSMN_ARRAY && in jsmn_parse()
273 tokens[parser->toksuper].type != JSMN_OBJECT) { in jsmn_parse()
275 parser->toksuper = tokens[parser->toksuper].parent; in jsmn_parse()
278 if (tokens[i].type == JSMN_ARRAY || tokens[i].type == JSMN_OBJECT) { in jsmn_parse()
279 if (tokens[i].start != -1 && tokens[i].end == -1) { in jsmn_parse()
294 if (tokens != NULL && parser->toksuper != -1) { in jsmn_parse()
295 jsmntok_t *t = &tokens[parser->toksuper]; in jsmn_parse()
305 r = jsmn_parse_primitive(parser, js, len, tokens, num_tokens); in jsmn_parse()
308 if (parser->toksuper != -1 && tokens != NULL) in jsmn_parse()
309 tokens[parser->toksuper].size++; in jsmn_parse()
320 if (tokens != NULL) { in jsmn_parse()
323 if (tokens[i].start != -1 && tokens[i].end == -1) { in jsmn_parse()