Home
last modified time | relevance | path

Searched refs:JSMN_ARRAY (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/ntp/libjsmn/
H A Djsmn_test.c61 check(t[0].type == JSMN_ARRAY); in test_empty()
70 check(t[2].type == JSMN_ARRAY && t[2].start == 5 && t[2].end == 7); in test_empty()
76 check(t[0].type == JSMN_ARRAY && t[0].start == 0 && t[0].end == 7); in test_empty()
276 check(r == JSMN_ERROR_PART && tok[0].type == JSMN_ARRAY in test_partial_array()
281 check(r == JSMN_ERROR_PART && tok[0].type == JSMN_ARRAY in test_partial_array()
283 && tok[3].type == JSMN_ARRAY && tok[4].type == JSMN_PRIMITIVE); in test_partial_array()
287 check(r == JSMN_ERROR_PART && tok[0].type == JSMN_ARRAY in test_partial_array()
289 && tok[3].type == JSMN_ARRAY && tok[4].type == JSMN_PRIMITIVE in test_partial_array()
296 check(r >= 0 && tok[0].type == JSMN_ARRAY in test_partial_array()
298 && tok[3].type == JSMN_ARRAY && tok[4].type == JSMN_PRIMITIVE in test_partial_array()
[all …]
H A Djsmn.c180 token->type = (c == '{' ? JSMN_OBJECT : JSMN_ARRAY); in jsmn_parse()
187 type = (c == '}' ? JSMN_OBJECT : JSMN_ARRAY); in jsmn_parse()
244 tokens[parser->toksuper].type != JSMN_ARRAY && in jsmn_parse()
250 if (tokens[i].type == JSMN_ARRAY || tokens[i].type == JSMN_OBJECT) { in jsmn_parse()
H A Djsmn.h20 JSMN_ARRAY = 2, enumerator
H A DREADME.md102 JSMN_ARRAY = 2,
/freebsd/lib/libpmc/pmu-events/
H A Djsmn.h15 JSMN_ARRAY = 2, enumerator
H A Djsmn.c207 token->type = (c == '{' ? JSMN_OBJECT : JSMN_ARRAY); in jsmn_parse()
217 type = (c == '}' ? JSMN_OBJECT : JSMN_ARRAY); in jsmn_parse()
H A Djson.c139 [JSMN_ARRAY] = "array",
H A Djevents.c547 EXPECT(tokens->type == JSMN_ARRAY, tokens, "expected top level array"); in json_events()
/freebsd/contrib/ntp/libjsmn/example/
H A Dsimple.c61 if (t[i+1].type != JSMN_ARRAY) { in main()
H A Djsondump.c34 } else if (t->type == JSMN_ARRAY) { in dump()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c1174 case JSMN_ARRAY: in json_token_skip()