Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 84) sorted by relevance

1234

/dragonfly/sbin/devfsctl/
H A Ddevfsctl.c182 id = get_id(tokens[1]); in parser_hide()
195 id = get_id(tokens[1]); in parser_show()
208 id = get_id(tokens[1]); in parser_link()
227 id = get_id(tokens[i]); in parser_group()
255 id = get_id(tokens[1]); in parser_perm()
259 uname = tokens[2]; in parser_perm()
606 char *tokens[256]; in process_line() local
629 tokens[0] = &buffer[c]; in process_line()
658 tokens[n] = NULL; in process_line()
692 tokens[0][i] = tolower(tokens[0][i]); in rule_parser()
[all …]
/dragonfly/usr.bin/dfregress/
H A Dparser.c68 entry_check_num_args(char **tokens, int num) in entry_check_num_args() argument
72 for (i = 0; tokens[i] != NULL; i++) in entry_check_num_args()
102 tokens[0] = &buffer[c]; in line_tokenize()
107 if ((c >= 1) && (&buffer[c] != tokens[n-1])) { in line_tokenize()
114 tokens[n-1] = &buffer[c+1]; in line_tokenize()
136 tokens[n++] = &buffer[c--]; in line_tokenize()
139 tokens[n] = NULL; in line_tokenize()
142 tokens[0] = NULL; in line_tokenize()
153 char *tokens[256]; in process_line() local
175 if ((n < 1) || (tokens[0][0] == '\0')) in process_line()
[all …]
H A Dtestcase.c721 testcase_entry_parser(void *arg, char **tokens) in testcase_entry_parser() argument
737 entry_check_num_args(tokens, 3); in testcase_entry_parser()
739 testcase->argv = &tokens[3]; in testcase_entry_parser()
744 nopts = parse_options(tokens[2], options); in testcase_entry_parser()
746 testcase->name = tokens[0]; in testcase_entry_parser()
748 if (strcmp(tokens[1], "userland") == 0) { in testcase_entry_parser()
750 } else if (strcmp(tokens[1], "kernel") == 0) { in testcase_entry_parser()
752 } else if (strcmp(tokens[1], "buildonly") == 0) { in testcase_entry_parser()
755 syntax_error("Unknown type: %s", tokens[1]); in testcase_entry_parser()
759 testcase->type_str = tokens[1]; in testcase_entry_parser()
H A Dparser.h33 int entry_check_num_args(char **tokens, int num);
/dragonfly/sbin/cryptdisks/
H A Dcryptdisks.c110 for (i = 0; tokens[i] != NULL; i++) in entry_check_num_args()
140 tokens[0] = &buffer[c]; in line_tokenize()
152 tokens[n-1] = &buffer[c+1]; in line_tokenize()
174 tokens[n++] = &buffer[c--]; in line_tokenize()
177 tokens[n] = NULL; in line_tokenize()
180 tokens[0] = NULL; in line_tokenize()
299 go.map_name = tokens[0]; in entry_parser()
300 go.device = tokens[1]; in entry_parser()
306 if ((tokens[2] != NULL) && (strcmp(tokens[2], "none") != 0)) { in entry_parser()
448 char *tokens[256]; in process_line() local
[all …]
/dragonfly/lib/libc/stdlib/
H A Dgetsubopt.c46 getsubopt(char **optionp, char * const *tokens, char **valuep) in getsubopt() argument
89 for (cnt = 0; *tokens; ++tokens, ++cnt) in getsubopt()
90 if (!strcmp(suboptarg, *tokens)) in getsubopt()
/dragonfly/usr.bin/window/
H A Dcompress.c373 struct cc **pp = tokens; in cc_sweep_phase()
423 return pp - tokens; in cc_sweep_phase()
464 struct cc **pp = tokens; in cc_sweep()
611 if ((i = pp - tokens) > 0) { in cc_sweep()
614 cc_sweep_reverse(tokens, places); in cc_sweep()
616 qsort((char *) tokens, i, sizeof *tokens, in cc_sweep()
622 tokens[i] = NULL; in cc_sweep()
676 pp = tokens; in cc_compress_phase1()
677 while (pp < tokens + ntoken) { in cc_compress_phase1()
749 struct cc **pp = tokens; in cc_compress()
[all …]
/dragonfly/contrib/grep/lib/
H A Ddfa.c1566 dfa->tokens = xpalloc (dfa->tokens, &dfa->talloc, 1, -1, in addtok_mb()
2276 && d->tokens[i] != BACKREF && d->tokens[i] != ANYCHAR in epsclosure()
2277 && d->tokens[i] != MBCSET && d->tokens[i] < CSET) in epsclosure()
2410 if (d->tokens[sindex] != d->tokens[dindex]) in merge_nfa_state()
2461 tokens = xnmalloc (d->nleaves, sizeof *tokens); in reorder_tokens()
2480 tokens[map[i]] = d->tokens[i]; in reorder_tokens()
2501 d->tokens[i] = tokens[i]; in reorder_tokens()
2782 if (d->tokens[i] == BEG || d->tokens[i] < NOTCHAR in dfaanalyze()
2784 || d->tokens[i] == MBCSET || d->tokens[i] >= CSET) in dfaanalyze()
3728 sup->tokens[j++] = d->tokens[i]; in dfassbuild()
[all …]
/dragonfly/contrib/wpa_supplicant/src/utils/
H A Djson.c209 static struct json_token * json_alloc_token(unsigned int *tokens) in json_alloc_token() argument
211 (*tokens)++; in json_alloc_token()
212 if (*tokens > JSON_MAX_TOKENS) { in json_alloc_token()
227 unsigned int tokens = 0; in json_parse() local
237 token = json_alloc_token(&tokens); in json_parse()
262 token->child = json_alloc_token(&tokens); in json_parse()
302 token = json_alloc_token(&tokens); in json_parse()
351 curr_token->sibling = json_alloc_token(&tokens); in json_parse()
372 token = json_alloc_token(&tokens); in json_parse()
424 token = json_alloc_token(&tokens); in json_parse()
/dragonfly/contrib/gcc-4.7/gcc/doc/
H A Dcppinternals.texi142 returns preprocessing tokens individually, not a line at a time.
362 in the directive's tokens if necessary.
398 calling @code{_cpp_lex_direct} to lex new tokens, or returning
516 unexpanded tokens.
525 context, cpplib reads tokens directly from the lexer.
589 argument only uses tokens from that argument; it cannot take tokens
611 any intervening padding tokens.
622 @section Marking tokens ineligible for future expansion
623 As discussed above, cpplib needs a way of marking tokens as
629 remember to free these tokens, they are allocated as temporary tokens
[all …]
/dragonfly/contrib/dialog/
H A Drc.c269 char *tokens[MAX_TOKEN + 1]; in str_to_attr() local
303 while (tok_count < TableSize(tokens)) { in str_to_attr()
305 tokens[tok_count++] = &tempstr[i]; in str_to_attr()
322 trim_token(&tokens[i]); in str_to_attr()
325 if (UNKNOWN_COLOR == (result->fg = from_color_name(tokens[0])) in str_to_attr()
326 || UNKNOWN_COLOR == (result->bg = from_color_name(tokens[1])) in str_to_attr()
327 || UNKNOWN_COLOR == (result->hilite = from_boolean(tokens[2])) in str_to_attr()
329 || (tok_count >= 4 && (result->ul = from_boolean(tokens[3])) == -1) in str_to_attr()
330 || (tok_count >= 5 && (result->rv = from_boolean(tokens[4])) == -1) in str_to_attr()
/dragonfly/sys/kern/
H A Dlwkt_token.c105 KTR_INFO_MASTER(tokens);
106 KTR_INFO(KTR_TOKENS, tokens, fail, 0, TOKEN_STRING, TOKEN_ARGS);
107 KTR_INFO(KTR_TOKENS, tokens, succ, 1, TOKEN_STRING, TOKEN_ARGS);
109 KTR_INFO(KTR_TOKENS, tokens, release, 2, TOKEN_STRING, TOKEN_ARGS);
110 KTR_INFO(KTR_TOKENS, tokens, remote, 3, TOKEN_STRING, TOKEN_ARGS);
111 KTR_INFO(KTR_TOKENS, tokens, reqremote, 4, TOKEN_STRING, TOKEN_ARGS);
112 KTR_INFO(KTR_TOKENS, tokens, reqfail, 5, TOKEN_STRING, TOKEN_ARGS);
113 KTR_INFO(KTR_TOKENS, tokens, drain, 6, TOKEN_STRING, TOKEN_ARGS);
114 KTR_INFO(KTR_TOKENS, tokens, contention_start, 7, CONTENDED_STRING, TOKEN_ARGS);
115 KTR_INFO(KTR_TOKENS, tokens, contention_stop, 7, UNCONTENDED_STRING, TOKEN_ARGS);
[all …]
/dragonfly/lib/libevtr/
H A Dktrfmt.l16 static struct token tokens[NR_TOKENS]; variable
30 return &tokens[curr_tok]; in tok_new()
36 assert(&tokens[curr_tok] == tok); in tok_free()
/dragonfly/sys/net/wg/
H A Dwg_cookie.c535 uint64_t bucket, tokens; in ratelimit_allow() local
574 tokens = r->r_tokens; in ratelimit_allow()
575 tokens += diff.tv_sec * NSEC_PER_SEC + diff.tv_nsec; in ratelimit_allow()
576 if (tokens > TOKEN_MAX) in ratelimit_allow()
577 tokens = TOKEN_MAX; in ratelimit_allow()
579 if (tokens >= INITIATION_COST) { in ratelimit_allow()
580 r->r_tokens = tokens - INITIATION_COST; in ratelimit_allow()
583 r->r_tokens = tokens; in ratelimit_allow()
/dragonfly/contrib/gcc-4.7/libcpp/
H A Dmacro.c970 if (macro->exp.tokens[i].type == CPP_PASTE) in macro_real_token_count()
1065 const cpp_token *src = macro->exp.tokens; in enter_macro_context()
1431 limit = macro->exp.tokens + exp_count; in replace_args()
2571 if (!_cpp_equiv_tokens (&macro1->exp.tokens[i], &macro2->exp.tokens[i])) in warn_of_redefinition()
2899 macro->exp.tokens[0].flags &= ~PREV_WHITE; in create_iso_definition()
2920 if (macro->exp.tokens[i].type == CPP_PASTE) in create_iso_definition()
2921 *extra_dest++ = macro->exp.tokens[i]; in create_iso_definition()
2923 *normal_dest++ = macro->exp.tokens[i]; in create_iso_definition()
2928 macro->exp.tokens = tokns; in create_iso_definition()
3118 cpp_token *token = &macro->exp.tokens[i]; in cpp_macro_definition()
[all …]
/dragonfly/contrib/gcc-8.0/libcpp/
H A Dmacro.c1242 if (macro->exp.tokens[i].type == CPP_PASTE) in macro_real_token_count()
1350 const cpp_token *src = macro->exp.tokens; in enter_macro_context()
1760 limit = macro->exp.tokens + exp_count; in replace_args()
3046 if (!_cpp_equiv_tokens (&macro1->exp.tokens[i], &macro2->exp.tokens[i])) in warn_of_redefinition()
3416 macro->exp.tokens[0].flags &= ~PREV_WHITE; in create_iso_definition()
3437 if (macro->exp.tokens[i].type == CPP_PASTE) in create_iso_definition()
3438 *extra_dest++ = macro->exp.tokens[i]; in create_iso_definition()
3440 *normal_dest++ = macro->exp.tokens[i]; in create_iso_definition()
3445 macro->exp.tokens = tokns; in create_iso_definition()
3646 cpp_token *token = &macro->exp.tokens[i]; in cpp_macro_definition()
[all …]
/dragonfly/usr.sbin/asf/
H A Dasf.c181 int tokens; /* number of tokens on line */ in main() local
252 tokens = tokenize(buf, token, MAXTOKEN); in main()
253 if (tokens <= 1) in main()
/dragonfly/contrib/gdb-7/gdb/
H A Dgo-exp.y463 vec.tokens = &$1;
525 $$.tokens = vec;
539 $$.tokens = realloc ($$.tokens,
545 $$.tokens[$$.len - 1].type = $3.type;
546 $$.tokens[$$.len - 1].length = $3.length;
547 $$.tokens[$$.len - 1].ptr = p;
557 free ($1.tokens[i].ptr);
558 free ($1.tokens);
H A Dc-exp.y689 vec.tokens = &$1;
773 $$.tokens = vec;
787 $$.tokens = realloc ($$.tokens,
793 $$.tokens[$$.len - 1].type = $2.type;
794 $$.tokens[$$.len - 1].length = $2.length;
795 $$.tokens[$$.len - 1].ptr = p;
806 switch ($1.tokens[i].type)
814 && type != $1.tokens[i].type)
816 type = $1.tokens[i].type;
827 free ($1.tokens[i].ptr);
[all …]
H A Dgo-exp.c2040 vec.tokens = &(yyvsp[(1) - (1)].tsval);
2116 (yyval.svec).tokens = vec;
2134 (yyval.svec).tokens = xrealloc ((yyval.svec).tokens,
2140 (yyval.svec).tokens[(yyval.svec).len - 1].type = (yyvsp[(3) - (3)].tsval).type;
2141 (yyval.svec).tokens[(yyval.svec).len - 1].length = (yyvsp[(3) - (3)].tsval).length;
2142 (yyval.svec).tokens[(yyval.svec).len - 1].ptr = p;
2155 xfree ((yyvsp[(1) - (1)].svec).tokens[i].ptr);
2156 xfree ((yyvsp[(1) - (1)].svec).tokens);
/dragonfly/sys/dev/raid/vinum/
H A Dvinumconfig.c79 static int tokens; /* number of tokens */ variable
962 if (tokens < 2) /* not enough tokens */ in config_drive()
977 for (parameter = 2; parameter < tokens; parameter++) { /* look at the other tokens */ in config_drive()
1112 for (parameter = 1; parameter < tokens; parameter++) { /* look at the other tokens */ in config_subdisk()
1315 for (parameter = 1; parameter < tokens; parameter++) { /* look at the other tokens */ in config_plex()
1491 if (tokens < 2) /* not enough tokens */ in config_volume()
1500 for (parameter = 2; parameter < tokens; parameter++) { /* look at all tokens */ in config_volume()
1627 tokens = tokenize(cptr, token); /* chop up into tokens */ in parse_config()
1629 if (tokens <= 0) /* screwed up or empty line */ in parse_config()
1630 return tokens; /* give up */ in parse_config()
[all …]
/dragonfly/sbin/vinum/
H A Dv.c103 int tokens; /* number of tokens */ variable
219 tokens = tokenize(buffer, token); in main()
221 if (tokens) in main()
222 parseline(tokens, token); /* and do what he says */ in main()
/dragonfly/gnu/usr.bin/rcs/lib/
H A Drcsbase.h329 enum tokens { enum
556 extern enum tokens nexttok;
576 int getlex P((enum tokens));
632 extern enum tokens const ctab[];
/dragonfly/contrib/gcc-4.7/libcpp/include/
H A Dcpp-id-data.h49 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
/dragonfly/contrib/gcc-8.0/libcpp/include/
H A Dcpp-id-data.h50 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;

1234