Lines Matching refs:js
12 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) {
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;
85 js = realloc(js, jslen + r + 1);
86 if (js == NULL) {
90 strncpy(js + jslen, buf, r);
94 r = jsmn_parse(&p, js, jslen, tok, tokcount);
106 dump(js, tok, p.toknext, 0);