Home
last modified time | relevance | path

Searched refs:js (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/contrib/ntp/libjsmn/
H A Djsmn_test.c33 #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 Djsmn.c37 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 Djsmn.h68 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
H A DREADME.md134 // js - pointer to JSON string
137 jsmn_parse(&parser, js, tokens, 10);
140 the `js` string.
/freebsd/contrib/ntp/libjsmn/example/
H A Djsondump.c12 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 Dtools.py60 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 Djavascript4 # 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 Djsmn.c61 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 Djsmn.h62 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js,
/freebsd/usr.bin/xohtml/
H A DMakefile12 external/jquery.js \
14 external/jquery.qtip.js
17 xohtml.js \
/freebsd/contrib/libxo/xohtml/
H A DMakefile.am12 external/jquery.js \
14 external/jquery.qtip.js
17 xohtml.js \
/freebsd/sys/contrib/libsodium/
H A D.gitignore55 libsodium-js
56 libsodium-js-*
80 test/default/*.asm.js
155 test/js.done
/freebsd/contrib/libxo/
H A DMakefile.am42 ${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 Dgvmat64.S314 js LeaveNow
333 js LeaveNow
352 js LeaveNow
394 js LeaveNow
/freebsd/contrib/netbsd-tests/include/
H A Dt_bitstring.c49 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 Demscripten.sh155 for file in *.js; do
168 for file in *.js; do
/freebsd/usr.sbin/jail/
H A Djailp.h77 #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 Dfloatundixf.S26 js 1f
H A Dfloatundisf.S24 js 1f
/freebsd/tests/examples/
H A Dtest_examples.py170 js = json.loads(out)
171 return js["statistics"]["interface"][0]
/freebsd/krb5/lib/krb5/docs/
H A DMakefile.inc74 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 DISO646.alias107 YU js
/freebsd/sys/contrib/libsodium/test/default/
H A Dindex.html.tpl90 st.src = tname + '.js';
H A DMakefile.am4 pre.js.inc \
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-sysv.mk267 .if ${:Ufile.ts:ts=js} != "file.js"

12