Searched defs:js (Results 1 - 5 of 5) sorted by relevance

/freebsd-head/contrib/ntp/libjsmn/example/
H A Djsondump.c12 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) { argument
18 printf("%.*s", t->end - t->start, js+t->start);
21 printf("'%.*s'", t->end - t->start, js+t->start);
28 j += dump(js, t+1+j, count-j, indent+1);
30 j += dump(js, t+1+j, count-j, indent+1);
40 j += dump(js, t+1+j, count-j, indent+1);
51 char *js = NULL; local
85 js = realloc(js, jslen + r + 1);
86 if (js
[all...]
/freebsd-head/contrib/netbsd-tests/include/
H A Dt_bitstring.c49 int jc, js; local
52 bit_ffs(b, n, &js);
54 (void) fprintf(file, "%3d %3d ", jc, js);
/freebsd-head/contrib/ntp/libjsmn/
H A Djsmn.c37 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, argument
44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) {
45 switch (js[parser->pos]) {
54 if (js[parser->pos] < 32 || js[parser->pos] >= 127) {
86 static jsmnerr_t jsmn_parse_string(jsmn_parser *parser, const char *js, argument
95 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) {
96 char c = js[parser->pos];
119 switch (js[parser->pos]) {
127 for(i = 0; i < 4 && parser->pos < len && js[parse
153 jsmn_parse(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens) argument
[all...]
H A Djsmn_test.c33 #define TOKEN_STRING(js, t, s) \
34 (strncmp(js+(t).start, s, (t).end - (t).start) == 0 \
45 const char *js; local
50 js = "{}";
52 r = jsmn_parse(&p, js, strlen(js), t, 10);
57 js = "[]";
59 r = jsmn_parse(&p, js, strlen(js), t, 10);
64 js
83 const char *js; local
119 const char *js; local
167 const char *js; local
200 const char *js; local
250 const char *js; local
271 const char *js; local
310 const char *js; local
336 const char *js; local
365 const char *js; local
397 const char *js; local
439 const char *js; local
458 const char *js; local
504 const char *js; local
569 const char *js; local
[all...]
/freebsd-head/lib/libpmc/pmu-events/
H A Djsmn.c62 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, argument
72 switch (js[parser->pos]) {
91 if (js[parser->pos] < 32 || js[parser->pos] >= 127) {
119 static jsmnerr_t jsmn_parse_string(jsmn_parser *parser, const char *js, argument
130 char c = js[parser->pos];
147 switch (js[parser->pos]) {
176 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len, argument
187 c = js[parser->pos];
225 r = jsmn_parse_string(parser, js, le
[all...]

Completed in 196 milliseconds