| /dragonfly/sbin/devfsctl/ |
| HD | devfsctl.c | 87 static int rule_parser(char **tokens); 89 static int ruletab_parser(char **tokens); 145 parser_include(char **tokens) in parser_include() argument 150 error = stat(tokens[1], &sb); in parser_include() 154 tokens[1], strerror(errno)); in parser_include() 156 chdir(dirname(tokens[1])); in parser_include() 157 read_config(basename(tokens[1]), RULES_FILE); in parser_include() 163 parser_jail(char **tokens) in parser_jail() argument 165 if (tokens[1][0] == 'y') { in parser_jail() 167 } else if (tokens[1][0] == 'n') { in parser_jail() [all …]
|
| /dragonfly/usr.bin/dfregress/ |
| HD | parser.c | 68 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() 84 line_tokenize(char *buffer, int (*is_sep)(char), char comment_char, char **tokens) in line_tokenize() argument 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 [all …]
|
| HD | testcase.c | 721 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()
|
| HD | parser.h | 33 int entry_check_num_args(char **tokens, int num);
|
| /dragonfly/sbin/cryptdisks/ |
| HD | cryptdisks.c | 106 entry_check_num_args(char **tokens, int num) in entry_check_num_args() argument 110 for (i = 0; tokens[i] != NULL; i++) in entry_check_num_args() 122 line_tokenize(char *buffer, int (*is_sep)(char), char comment_char, char **tokens) in line_tokenize() argument 140 tokens[0] = &buffer[c]; in line_tokenize() 145 if ((c >= 1) && (&buffer[c] != tokens[n-1])) { 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() 284 entry_parser(char **tokens, char **options, int type) in entry_parser() argument [all …]
|
| /dragonfly/lib/libc/stdlib/ |
| HD | getsubopt.c | 46 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/ |
| HD | compress.c | 371 cc_sweep_phase(char *buffer, int bufsize, struct cc **tokens) in cc_sweep_phase() argument 373 struct cc **pp = tokens; in cc_sweep_phase() 423 return pp - tokens; in cc_sweep_phase() 457 cc_sweep(char *buffer, int bufsize, struct cc **tokens, int length) in cc_sweep() argument 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() 649 cc_compress_phase(struct cc **output, int bufsize, struct cc **tokens, int ntoken) in cc_compress_phase() argument [all …]
|
| /dragonfly/contrib/grep/lib/ |
| HD | dfa.c | 449 token *tokens; /* Postfix parse array. */ member 1566 dfa->tokens = xpalloc (dfa->tokens, &dfa->talloc, 1, -1, in addtok_mb() 1567 sizeof *dfa->tokens); in addtok_mb() 1574 dfa->tokens[dfa->tindex++] = t; in addtok_mb() 1883 switch (dfa->tokens[tindex - 1]) in nsubtoks() 1906 addtok_mb (dfa, dfa->tokens[tindex + i], in copytoks() 1910 addtok_mb (dfa, dfa->tokens[tindex + i], 3); in copytoks() 2213 prtok (d->tokens[s->elems[j].index]); in state_index() 2239 first_end = d->tokens[s->elems[j].index]; in state_index() 2241 else if (d->tokens[s->elems[j].index] == BACKREF) in state_index() [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/utils/ |
| HD | json.c | 209 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/ |
| HD | cppinternals.texi | 142 returns preprocessing tokens individually, not a line at a time. 146 of lexing new tokens, handling directives, and expanding macros as 164 tokens directly, multiple-include optimization, or conditional block 189 to be notified about the start of every non-directive line with tokens 191 token might be a macro, and the tokens of a macro expansion do not have 311 two separate @samp{:} tokens and almost certainly a syntax error. Such 319 The storage holding the spellings of such tokens remains until the 327 When the preprocessor was changed to return pointers to tokens, one 336 Another example is that, after reading the first few tokens of a 349 preprocessor lex all tokens on a line consecutively into a token buffer, [all …]
|
| /dragonfly/contrib/dialog/ |
| HD | rc.c | 269 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/ |
| HD | lwkt_token.c | 105 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/ |
| HD | ktrfmt.l | 16 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/ |
| HD | wg_cookie.c | 535 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/ |
| HD | macro.c | 970 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() 1094 _cpp_push_token_context (pfile, node, macro->exp.tokens, in enter_macro_context() 1398 return cur_replacement_token - macro->exp.tokens; in expanded_token_index() 1431 limit = macro->exp.tokens + exp_count; in replace_args() 1433 for (src = macro->exp.tokens; src < limit; src++) in replace_args() 1454 || (src > macro->exp.tokens && (src[-1].flags & PASTE_LEFT))) in replace_args() 1531 for (src = macro->exp.tokens; src < limit; src++) in replace_args() 1580 else if (src != macro->exp.tokens && (src[-1].flags & PASTE_LEFT)) in replace_args() 1632 && src != macro->exp.tokens && !(src[-1].flags & PASTE_LEFT)) in replace_args() [all …]
|
| /dragonfly/contrib/gcc-8.0/libcpp/ |
| HD | macro.c | 1242 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() 1376 _cpp_push_token_context (pfile, node, macro->exp.tokens, in enter_macro_context() 1703 return cur_replacement_token - macro->exp.tokens; in expanded_token_index() 1760 limit = macro->exp.tokens + exp_count; in replace_args() 1762 for (src = macro->exp.tokens; src < limit; src++) in replace_args() 1783 || (src > macro->exp.tokens && (src[-1].flags & PASTE_LEFT))) in replace_args() 1863 for (src = macro->exp.tokens; src < limit; src++) in replace_args() 1877 if (src != macro->exp.tokens && !(src[-1].flags & PASTE_LEFT)) in replace_args() 1966 else if (src != macro->exp.tokens && (src[-1].flags & PASTE_LEFT)) in replace_args() [all …]
|
| /dragonfly/usr.sbin/asf/ |
| HD | asf.c | 181 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/ |
| HD | go-exp.y | 463 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);
|
| HD | c-exp.y | 689 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 …]
|
| HD | go-exp.c | 2040 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/ |
| HD | vinumconfig.c | 79 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/ |
| HD | v.c | 103 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/ |
| HD | rcsbase.h | 329 enum tokens { enum 556 extern enum tokens nexttok; 576 int getlex P((enum tokens)); 632 extern enum tokens const ctab[];
|
| /dragonfly/contrib/gcc-8.0/libcpp/include/ |
| HD | cpp-id-data.h | 50 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
|
| /dragonfly/contrib/gcc-4.7/libcpp/include/ |
| HD | cpp-id-data.h | 49 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
|