Searched refs:tokens (Results 1 - 25 of 74) sorted by relevance

123

/freebsd-current/crypto/openssl/test/recipes/
H A D02-test_ordinals.t30 my @tokens = split(/(?:\s+|\s*:\s*)/, $line);
32 if ($#tokens < 5 || $#tokens > 6) {
37 if ($tokens[3] eq "NOEXIST") {
42 $newqual = $tokens[4];
44 my $number = $tokens[1];
50 print STDERR "Invalid ordinal detected: ".$tokens[1]."\n";
54 $cnt = $tokens[1];
56 $lastfunc = $tokens[0];
/freebsd-current/contrib/ntp/libjsmn/
H A Djsmn.c9 jsmntok_t *tokens, size_t num_tokens) {
14 tok = &tokens[parser->toknext++];
38 size_t len, jsmntok_t *tokens, size_t num_tokens) {
66 if (tokens == NULL) {
70 token = jsmn_alloc_token(parser, tokens, num_tokens);
87 size_t len, jsmntok_t *tokens, size_t num_tokens) {
100 if (tokens == NULL) {
103 token = jsmn_alloc_token(parser, tokens, num_tokens);
151 * Parse JSON string and fill tokens.
154 jsmntok_t *tokens, unsigne
8 jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens) argument
37 jsmn_parse_primitive(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) argument
86 jsmn_parse_string(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) argument
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.c86 jsmntok_t tokens[10]; local
91 r = jsmn_parse(&p, js, strlen(js), tokens, 10);
93 check(TOKEN_EQ(tokens[0], 0, 8, JSMN_OBJECT));
94 check(TOKEN_EQ(tokens[1], 2, 3, JSMN_STRING));
95 check(TOKEN_EQ(tokens[2], 6, 7, JSMN_PRIMITIVE));
97 check(TOKEN_STRING(js, tokens[0], js));
98 check(TOKEN_STRING(js, tokens[1], "a"));
99 check(TOKEN_STRING(js, tokens[2], "0"));
103 r = jsmn_parse(&p, js, strlen(js), tokens, 10);
108 r = jsmn_parse(&p, js, strlen(js), tokens, 1
335 jsmntok_t tokens[10]; local
364 jsmntok_t tokens[128]; local
396 jsmntok_t tokens[10]; local
442 jsmntok_t tokens[10]; local
507 jsmntok_t tokens[10]; local
572 jsmntok_t tokens[10]; local
[all...]
H A Djsmn.h25 /* Not enough tokens were provided */
60 * Create JSON parser over an array of tokens
65 * Run JSON parser. It parses a JSON data string into and array of tokens, each describing
69 jsmntok_t *tokens, unsigned int num_tokens);
/freebsd-current/contrib/mandoc/
H A Dtest-getsubopt.c33 char *const tokens[] = { token0, NULL }; local
35 return ! (getsubopt(&options, tokens, &value) == 0
H A Dcompat_getsubopt.c39 getsubopt(char **optionp, char * const *tokens, char **valuep) argument
83 for (cnt = 0; *tokens; ++tokens, ++cnt)
84 if (!strcmp(suboptarg, *tokens))
/freebsd-current/lib/libc/stdlib/
H A Dgetsubopt.c44 getsubopt(char **optionp, char * const *tokens, char **valuep) argument
87 for (cnt = 0; *tokens; ++tokens, ++cnt)
88 if (!strcmp(suboptarg, *tokens))
/freebsd-current/lib/libpmc/pmu-events/
H A Djson.c80 * Parse json file using jsmn. Return array of tokens,
86 jsmntok_t *tokens; local
95 tokens = malloc(sz);
96 if (!tokens)
99 res = jsmn_parse(&parser, *map, *size, tokens,
107 return tokens;
109 free(tokens);
115 void free_json(char *map, size_t size, jsmntok_t *tokens) argument
117 free(tokens);
H A Djsmn.c34 jsmntok_t *tokens, size_t num_tokens)
40 tok = &tokens[parser->toknext++];
63 jsmntok_t *tokens, size_t num_tokens)
105 token = jsmn_alloc_token(parser, tokens, num_tokens);
120 jsmntok_t *tokens, size_t num_tokens)
133 token = jsmn_alloc_token(parser, tokens, num_tokens);
173 * Parse JSON string and fill tokens.
176 jsmntok_t *tokens, unsigned int num_tokens)
202 token = jsmn_alloc_token(parser, tokens, num_tokens);
206 tokens[parse
33 jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens) argument
61 jsmn_parse_primitive(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) argument
118 jsmn_parse_string(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) argument
175 jsmn_parse(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens) argument
[all...]
H A Djsmn.h20 /* Not enough tokens were provided */
54 * Create JSON parser over an array of tokens
59 * Run JSON parser. It parses a JSON data string into and array of tokens,
64 jsmntok_t *tokens, unsigned int num_tokens);
H A Djson.h7 void free_json(char *map, size_t size, jsmntok_t *tokens);
/freebsd-current/contrib/llvm-project/lld/ELF/
H A DScriptLexer.cpp47 StringRef tok = tokens[pos - 1];
60 StringRef tok = tokens[pos - 1];
84 StringRef tok = tokens[pos - 1];
107 // Split S into linker script tokens.
120 // because, in a glob match context, only unquoted tokens are interpreted
121 // as glob patterns. Double-quoted tokens are literal patterns in that
137 // Some operators form separate tokens.
150 // Unquoted token. This is more relaxed than tokens in C-like language,
164 tokens.insert(tokens
[all...]
H A DScriptLexer.h38 std::vector<StringRef> tokens; member in class:lld::elf::ScriptLexer
/freebsd-current/contrib/bmake/unit-tests/
H A Dsh-errctl.exp1 job_pipe -1 -1, maxjobs 1, tokens 1, compat 0
H A Dopt-debug-jobs.exp1 job_pipe -1 -1, maxjobs 1, tokens 1, compat 0
/freebsd-current/sys/arm64/arm64/
H A Ddisassem.c128 * tokens - array of tokens (operands) inside instruction
137 struct arm64_insn_token tokens[ARM64_MAX_TOKEN_CNT]; member in struct:arm64_insn
329 memset(tab->tokens[token].name, 0,
330 sizeof(tab->tokens[token].name));
333 tab->tokens[token].name[i] = *format;
352 "too many tokens in op %s\n",
359 tab->tokens[token].pos = a + 1;
360 tab->tokens[token].len = len;
398 if (strcmp(insn->tokens[
[all...]
/freebsd-current/contrib/libxo/xolint/
H A Dxolint.pl152 @tokens = parse_tokens();
153 print "token:\n '" . join("'\n '", @tokens) . "'\n"
155 check_format($tokens[0]);
164 my @tokens = ();
189 push @tokens, $current;
221 push @tokens, substr($current, 0, -1);
222 return @tokens;
/freebsd-current/contrib/lib9p/pytest/
H A Dprotocol.py1367 '[type]' tokens). If prefix and/or suffix are removed, the full
1490 Inside the {...} pair is the usual set of tokens, but again
1499 tokens = collections.deque(_scan(string))
1501 def get_subscripted(tokens):
1504 tuple after stripping off both tokens, or returns None
1505 and does not strip tokens.
1507 if len(tokens) == 0 or tokens[0].ttype != 'word':
1509 if len(tokens) > 1 and tokens[
[all...]
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dexpand_path.c87 * This is also used to expand a few other tokens on Windows, since
345 } tokens[] = { variable in typeref:struct:token
390 for (i = 0; i < sizeof(tokens)/sizeof(tokens[0]); i++) {
391 if (!strncmp(token+2, tokens[i].tok, (token_end - token) - 2))
392 return tokens[i].exp_func(context, tokens[i].param,
393 tokens[i].postfix, ret);
/freebsd-current/contrib/openbsm/libbsm/
H A Dbsm_audit.c90 * tokens associated with this record. Descriptors are recyled once the
201 TAILQ_INSERT_TAIL(&rec->token_q, tok, tokens);
211 * Assemble an audit record out of its tokens, including allocating header and
212 * trailer tokens. Does not free the token chain, which must be done by the
286 TAILQ_INSERT_HEAD(&rec->token_q, header, tokens);
287 TAILQ_INSERT_TAIL(&rec->token_q, trailer, tokens);
292 TAILQ_FOREACH(tok, &rec->token_q, tokens) {
311 TAILQ_REMOVE(&rec->token_q, tok, tokens);
333 * Add the header token, identify any missing tokens. Write out the tokens t
[all...]
/freebsd-current/contrib/openbsm/bin/auditfilterd/
H A Dauditfilterd.c132 * Parse the BSM into a set of tokens, which will be passed to registered
135 #define MAX_TOKENS 128 /* Maximum tokens we handle per record. */
140 tokenstr_t tokens[MAX_TOKENS]; local
146 if (au_fetch_tok(&tokens[tokencount], data + bytesread,
149 bytesread += tokens[tokencount].len;
155 (am->am_record)(am, ts, tokencount, tokens);
/freebsd-current/contrib/openbsm/sys/bsm/
H A Daudit_internal.h51 TAILQ_ENTRY(au_token) tokens; member in struct:au_token
57 TAILQ_HEAD(, au_token) token_q; /* Queue of BSM tokens. */
68 * using structures for all tokens. This is not straightforward since these
70 * size (e.g text tokens).
/freebsd-current/sys/bsm/
H A Daudit_internal.h53 TAILQ_ENTRY(au_token) tokens; member in struct:au_token
59 TAILQ_HEAD(, au_token) token_q; /* Queue of BSM tokens. */
70 * using structures for all tokens. This is not straightforward since these
72 * size (e.g text tokens).
/freebsd-current/sys/dev/wg/
H A Dwg_cookie.c422 uint64_t bucket, tokens; local
450 * cap the tokens at TOKEN_MAX. If the endpoint has no tokens
451 * left (that is tokens <= INITIATION_COST) then we block the
458 tokens = r->r_tokens + diff;
460 if (tokens > TOKEN_MAX)
461 tokens = TOKEN_MAX;
463 if (tokens >= INITIATION_COST) {
464 r->r_tokens = tokens - INITIATION_COST;
467 r->r_tokens = tokens;
[all...]
/freebsd-current/contrib/wpa/src/utils/
H A Djson.c209 static struct json_token * json_alloc_token(unsigned int *tokens) argument
211 (*tokens)++;
212 if (*tokens > JSON_MAX_TOKENS) {
227 unsigned int tokens = 0; local
237 token = json_alloc_token(&tokens);
262 token->child = json_alloc_token(&tokens);
302 token = json_alloc_token(&tokens);
353 curr_token->sibling = json_alloc_token(&tokens);
374 token = json_alloc_token(&tokens);
426 token = json_alloc_token(&tokens);
[all...]

Completed in 175 milliseconds

123