Home
last modified time | relevance | path

Searched refs:jsmntok_t (Results 1 – 12 of 12) sorted by relevance

/freebsd/lib/libpmc/pmu-events/
H A Djson.h6 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len);
7 void free_json(char *map, size_t size, jsmntok_t *tokens);
8 int json_line(char *map, jsmntok_t *t);
9 const char *json_name(jsmntok_t *t);
10 int json_streq(char *map, jsmntok_t *t, const char *s);
11 int json_len(jsmntok_t *t);
H A Djson.c83 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len) in parse_json()
86 jsmntok_t *tokens; in parse_json()
100 sz / sizeof(jsmntok_t)); in parse_json()
115 void free_json(char *map, size_t size, jsmntok_t *tokens) in free_json()
132 int json_line(char *map, jsmntok_t *t) in json_line()
147 const char *json_name(jsmntok_t *t) in json_name()
152 int json_len(jsmntok_t *t) in json_len()
158 int json_streq(char *map, jsmntok_t *t, const char *s) in json_streq()
H A Djsmn.c33 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token()
34 jsmntok_t *tokens, size_t num_tokens) in jsmn_alloc_token()
36 jsmntok_t *tok; in jsmn_alloc_token()
49 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token()
63 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_primitive()
65 jsmntok_t *token; in jsmn_parse_primitive()
120 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_string()
122 jsmntok_t *token; in jsmn_parse_string()
176 jsmntok_t *tokens, unsigned int num_tokens) in jsmn_parse()
180 jsmntok_t *token; in jsmn_parse()
H A Djsmn.h41 } jsmntok_t; typedef
64 jsmntok_t *tokens, unsigned int num_tokens);
H A Djevents.c127 const char *a, jsmntok_t *bt) in addfield()
216 static void cut_comma(char *map, jsmntok_t *newval) in cut_comma()
227 static struct msrmap *lookup_msr(char *map, jsmntok_t *val) in lookup_msr()
229 jsmntok_t newval = *val; in lookup_msr()
269 static const char *field_to_perf(struct map *table, char *map, jsmntok_t *val) in field_to_perf()
281 jsmntok_t *loc = (t); \
536 jsmntok_t *tokens, *tok; in json_events()
558 jsmntok_t *msrval = NULL; in json_events()
559 jsmntok_t *precise = NULL; in json_events()
560 jsmntok_t *ob in json_events()
[all...]
/freebsd/contrib/ntp/libjsmn/
H A Djsmn.c8 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token()
9 jsmntok_t *tokens, size_t num_tokens) { in jsmn_alloc_token()
10 jsmntok_t *tok; in jsmn_alloc_token()
26 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token()
38 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_primitive()
39 jsmntok_t *token; in jsmn_parse_primitive()
87 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_string()
88 jsmntok_t *token; in jsmn_parse_string()
154 jsmntok_t *tokens, unsigned int num_tokens) { in jsmn_parse()
157 jsmntok_t *token; in jsmn_parse()
[all …]
H A Djsmn_test.c48 jsmntok_t t[10]; in test_empty()
86 jsmntok_t tokens[10]; in test_simple()
118 jsmntok_t tok[10]; in test_primitive()
166 jsmntok_t tok[10]; in test_string()
199 jsmntok_t tok[10]; in test_partial_string()
249 jsmntok_t tok[10]; in test_unquoted_keys()
270 jsmntok_t tok[10]; in test_partial_array()
309 jsmntok_t toksmall[10], toklarge[10]; in test_array_nomem()
335 jsmntok_t tokens[10]; in test_objects_arrays()
364 jsmntok_t tokens[128]; in test_issue_22()
[all …]
H A Djsmn.h47 } jsmntok_t; typedef
69 jsmntok_t *tokens, unsigned int num_tokens);
H A DREADME.md114 Token is an object of `jsmntok_t` type:
121 } jsmntok_t;
130 jsmntok_t tokens[10];
/freebsd/contrib/ntp/libjsmn/example/
H A Dsimple.c14 static int jsoneq(const char *json, jsmntok_t *tok, const char *s) { in jsoneq()
26 jsmntok_t t[128]; /* We expect no more than 128 tokens */ in main()
65 jsmntok_t *g = &t[i+j+2]; in main()
H A Djsondump.c12 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) { in dump()
56 jsmntok_t *tok; in main()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c103 jsmntok_t tok[JSMN_MAXTOK];