| /freebsd/contrib/ntp/libjsmn/ |
| H A D | jsmn_test.c | 33 #define TOKEN_STRING(js, t, s) \ argument 34 (strncmp(js+(t).start, s, (t).end - (t).start) == 0 \ 45 const char *js; in test_empty() local 50 js = "{}"; in test_empty() 52 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 57 js = "[]"; in test_empty() 59 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 64 js = "{\"a\":[]}"; in test_empty() 66 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 72 js = "[{},{}]"; in test_empty() [all …]
|
| H A D | jsmn.c | 37 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument 44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive() 45 switch (js[parser->pos]) { in jsmn_parse_primitive() 54 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive() 86 static jsmnerr_t jsmn_parse_string(jsmn_parser *parser, const char *js, in jsmn_parse_string() argument 95 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_string() 96 char c = js[parser->pos]; in jsmn_parse_string() 119 switch (js[parser->pos]) { in jsmn_parse_string() 127 for(i = 0; i < 4 && parser->pos < len && js[parser->pos] != '\0'; i++) { in jsmn_parse_string() 129 if(!((js[parser->pos] >= 48 && js[parser->pos] <= 57) || /* 0-9 */ in jsmn_parse_string() [all …]
|
| H A D | jsmn.h | 68 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
|
| H A D | README.md | 134 // js - pointer to JSON string 137 jsmn_parse(&parser, js, tokens, 10); 140 the `js` string.
|
| /freebsd/contrib/ntp/libjsmn/example/ |
| H A D | jsondump.c | 12 static int dump(const char *js, jsmntok_t *t, size_t count, int indent) { in dump() argument 18 printf("%.*s", t->end - t->start, js+t->start); in dump() 21 printf("'%.*s'", t->end - t->start, js+t->start); in dump() 28 j += dump(js, t+1+j, count-j, indent+1); in dump() 30 j += dump(js, t+1+j, count-j, indent+1); in dump() 40 j += dump(js, t+1+j, count-j, indent+1); in dump() 51 char *js = NULL; in main() local 85 js = realloc(js, jslen + r + 1); in main() 86 if (js == NULL) { in main() 90 strncpy(js + jslen, buf, r); in main() [all …]
|
| /freebsd/tests/atf_python/sys/net/ |
| H A D | tools.py | 60 js = json.loads(out) 61 js = js["statistics"]["route-information"]["route-table"]["rt-family"] 62 if js: 63 return js[0]["rt-entry"] 73 js = json.loads(out) 74 js = js["statistics"]["route-nhop-information"]["nhop-table"]["rt-family"] 75 if js: 76 return js[0]["nh-entry"]
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | javascript | 4 # javascript: magic for javascript and node.js scripts. 6 0 string/tw #!/bin/node Node.js script executable 8 0 string/tw #!/usr/bin/node Node.js script executable 10 0 string/tw #!/bin/nodejs Node.js script executable 12 0 string/tw #!/usr/bin/nodejs Node.js script executable 14 0 string/t #!/usr/bin/env\ node Node.js script executable 16 0 string/t #!/usr/bin/env\ nodejs Node.js script executable 25 !:ext js 29 !:ext js 33 !:ext js [all …]
|
| /freebsd/lib/libpmc/pmu-events/ |
| H A D | jsmn.c | 61 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument 71 switch (js[parser->pos]) { in jsmn_parse_primitive() 90 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive() 118 static jsmnerr_t jsmn_parse_string(jsmn_parser *parser, const char *js, in jsmn_parse_string() argument 129 char c = js[parser->pos]; in jsmn_parse_string() 146 switch (js[parser->pos]) { in jsmn_parse_string() 175 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len, in jsmn_parse() argument 194 c = js[parser->pos]; in jsmn_parse() 245 r = jsmn_parse_string(parser, js, len, tokens, in jsmn_parse() 299 r = jsmn_parse_primitive(parser, js, len, tokens, in jsmn_parse()
|
| H A D | jsmn.h | 62 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js,
|
| /freebsd/usr.bin/xohtml/ |
| H A D | Makefile | 12 external/jquery.js \ 14 external/jquery.qtip.js 17 xohtml.js \
|
| /freebsd/contrib/libxo/xohtml/ |
| H A D | Makefile.am | 12 external/jquery.js \ 14 external/jquery.qtip.js 17 xohtml.js \
|
| /freebsd/sys/contrib/libsodium/ |
| H A D | .gitignore | 55 libsodium-js 56 libsodium-js-* 80 test/default/*.asm.js 155 test/js.done
|
| /freebsd/contrib/libxo/ |
| H A D | Makefile.am | 42 ${top_srcdir}/xohtml/xohtml.js \ 43 ${top_srcdir}/xohtml/external/jquery.js \ 45 ${top_srcdir}/xohtml/external/jquery.qtip.js
|
| /freebsd/sys/contrib/zlib/contrib/gcc_gvmat64/ |
| H A D | gvmat64.S | 314 js LeaveNow 333 js LeaveNow 352 js LeaveNow 394 js LeaveNow
|
| /freebsd/contrib/netbsd-tests/include/ |
| H A D | t_bitstring.c | 49 int jc, js; in printbits() local 52 bit_ffs(b, n, &js); in printbits() 54 (void) fprintf(file, "%3d %3d ", jc, js); in printbits()
|
| /freebsd/sys/contrib/libsodium/dist-build/ |
| H A D | emscripten.sh | 155 for file in *.js; do 168 for file in *.js; do
|
| /freebsd/usr.sbin/jail/ |
| H A D | jailp.h | 77 #define JF_DO_STOP(js) (((js) & (JF_SET | JF_STOP)) == JF_STOP) argument
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/x86_64/ |
| H A D | floatundixf.S | 26 js 1f
|
| H A D | floatundisf.S | 24 js 1f
|
| /freebsd/tests/examples/ |
| H A D | test_examples.py | 170 js = json.loads(out) 171 return js["statistics"]["interface"][0]
|
| /freebsd/krb5/lib/krb5/docs/ |
| H A D | Makefile.inc | 74 searchindex.js 81 doctools.js \ 82 documentation_options.js \ 84 jquery.js \ 86 language_data.js \ 90 searchtools.js \ 91 underscore.js
|
| /freebsd/share/i18n/esdb/ISO646/ |
| H A D | ISO646.alias | 107 YU js
|
| /freebsd/sys/contrib/libsodium/test/default/ |
| H A D | index.html.tpl | 90 st.src = tname + '.js';
|
| H A D | Makefile.am | 4 pre.js.inc \
|
| /freebsd/contrib/bmake/unit-tests/ |
| H A D | varmod-sysv.mk | 267 .if ${:Ufile.ts:ts=js} != "file.js"
|