Searched refs:jsmntok_t (Results 1 - 11 of 11) sorted by relevance

/freebsd-12-stable/lib/libpmc/pmu-events/
H A Djson.h7 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len);
8 void free_json(char *map, size_t size, jsmntok_t *tokens);
9 int json_line(char *map, jsmntok_t *t);
10 const char *json_name(jsmntok_t *t);
11 int json_streq(char *map, jsmntok_t *t, const char *s);
12 int json_len(jsmntok_t *t);
H A Djsmn.h41 } jsmntok_t; typedef in typeref:struct:__anon8700
64 jsmntok_t *tokens, unsigned int num_tokens);
H A Djson.c85 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len)
88 jsmntok_t *tokens;
102 sz / sizeof(jsmntok_t));
117 void free_json(char *map, size_t size, jsmntok_t *tokens)
134 int json_line(char *map, jsmntok_t *t)
149 const char *json_name(jsmntok_t *t)
154 int json_len(jsmntok_t *t)
160 int json_streq(char *map, jsmntok_t *t, const char *s)
H A Djsmn.c34 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
35 jsmntok_t *tokens, size_t num_tokens)
37 jsmntok_t *tok;
50 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type,
64 jsmntok_t *tokens, size_t num_tokens)
66 jsmntok_t *token;
121 jsmntok_t *tokens, size_t num_tokens)
123 jsmntok_t *token;
177 jsmntok_t *tokens, unsigned int num_tokens)
181 jsmntok_t *toke
[all...]
H A Djevents.c90 const char *a, jsmntok_t *bt)
196 static void cut_comma(char *map, jsmntok_t *newval)
207 static int match_field(char *map, jsmntok_t *field, int nz,
208 char **event, jsmntok_t *val)
211 jsmntok_t newval = *val;
222 static struct msrmap *lookup_msr(char *map, jsmntok_t *val)
224 jsmntok_t newval = *val;
251 static const char *field_to_perf(struct map *table, char *map, jsmntok_t *val)
263 jsmntok_t *loc = (t); \
519 jsmntok_t *token
[all...]
/freebsd-12-stable/contrib/ntp/libjsmn/
H A Djsmn.h47 } jsmntok_t; typedef in typeref:struct:__anon6295
69 jsmntok_t *tokens, unsigned int num_tokens);
H A Djsmn.c8 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser,
9 jsmntok_t *tokens, size_t num_tokens) {
10 jsmntok_t *tok;
26 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type,
38 size_t len, jsmntok_t *tokens, size_t num_tokens) {
39 jsmntok_t *token;
87 size_t len, jsmntok_t *tokens, size_t num_tokens) {
88 jsmntok_t *token;
154 jsmntok_t *tokens, unsigned int num_tokens) {
157 jsmntok_t *toke
[all...]
H A Djsmn_test.c48 jsmntok_t t[10];
86 jsmntok_t tokens[10];
118 jsmntok_t tok[10];
166 jsmntok_t tok[10];
199 jsmntok_t tok[10];
249 jsmntok_t tok[10];
270 jsmntok_t tok[10];
309 jsmntok_t toksmall[10], toklarge[10];
335 jsmntok_t tokens[10];
364 jsmntok_t token
556 #define jsmntok_t macro
[all...]
/freebsd-12-stable/contrib/ntp/libjsmn/example/
H A Dsimple.c14 static int jsoneq(const char *json, jsmntok_t *tok, const char *s) {
26 jsmntok_t t[128]; /* We expect no more than 128 tokens */
65 jsmntok_t *g = &t[i+j+2];
H A Djsondump.c12 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) {
56 jsmntok_t *tok;
/freebsd-12-stable/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c103 jsmntok_t tok[JSMN_MAXTOK];

Completed in 93 milliseconds