Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 576) sorted by relevance

12345678910>>...24

/openbsd-src/gnu/gcc/gcc/
H A Dscan-decls.c64 enum cpp_ttype token = get_a_token (pfile)->type; in skip_to_closing_brace() local
66 if (token == CPP_EOF) in skip_to_closing_brace()
68 if (token == CPP_OPEN_BRACE) in skip_to_closing_brace()
70 if (token == CPP_CLOSE_BRACE && --nesting == 0) in skip_to_closing_brace()
103 const cpp_token *token; in scan_decls() local
106 token = get_a_token (pfile); in scan_decls()
112 if (token->type == CPP_OPEN_BRACE) in scan_decls()
121 if (token->type == CPP_OPEN_BRACE) in scan_decls()
127 if (token->type == CPP_EOF) in scan_decls()
130 if (token->type == CPP_SEMICOLON) in scan_decls()
[all …]
/openbsd-src/usr.sbin/dhcpd/
H A Dconfpars.c72 int token; in readconf() local
94 token = peek_token(&val, cfile); in readconf()
95 if (token == EOF) in readconf()
102 token = next_token(&val, cfile); /* Clear the peek buffer */ in readconf()
119 int token; in read_leases() local
142 token = next_token(&val, cfile); in read_leases()
143 if (token == EOF) in read_leases()
145 if (token != TOK_LEASE) { in read_leases()
195 int token; in parse_statement() local
342 token = next_token(&val, cfile); in parse_statement()
[all …]
H A Dparse.c84 int token; in skip_to_semi() local
89 token = peek_token(&val, cfile); in skip_to_semi()
90 if (token == '}') { in skip_to_semi()
92 token = next_token(&val, cfile); in skip_to_semi()
97 } else if (token == '{') { in skip_to_semi()
99 } else if (token == ';' && !brace_count) { in skip_to_semi()
100 token = next_token(&val, cfile); in skip_to_semi()
102 } else if (token == '\n') { in skip_to_semi()
109 token = next_token(&val, cfile); in skip_to_semi()
112 token = next_token(&val, cfile); in skip_to_semi()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dscan-decls.c64 enum cpp_ttype token = get_a_token (pfile)->type; local
66 if (token == CPP_EOF)
68 if (token == CPP_OPEN_BRACE)
70 if (token == CPP_CLOSE_BRACE && --nesting == 0)
105 const cpp_token *token; local
108 token = get_a_token (pfile);
114 if (token->type == CPP_OPEN_BRACE)
123 if (token->type == CPP_OPEN_BRACE)
129 if (token->type == CPP_EOF)
132 if (token->type == CPP_SEMICOLON)
[all …]
H A Dcppmacro.c108 cpp_token *token = _cpp_temp_token (pfile); local
111 token->type = CPP_STRING;
112 token->val.str.len = len;
113 token->val.str.text = text;
114 token->flags = 0;
115 return token;
350 const cpp_token *token = arg->first[i]; local
352 if (token->type == CPP_PADDING)
355 source = token->val.source;
359 escape_it = (token->type == CPP_STRING || token->type == CPP_WSTRING
[all …]
/openbsd-src/usr.sbin/ikectl/
H A Dparser.c51 struct token { struct
55 const struct token *next; argument
58 static const struct token t_main[];
59 static const struct token t_reset[];
60 static const struct token t_reset_id[];
61 static const struct token t_log[];
62 static const struct token t_load[];
63 static const struct token t_ca[];
64 static const struct token t_ca_pass[];
65 static const struct token t_ca_pass_val[];
[all …]
/openbsd-src/usr.sbin/ldpctl/
H A Dparser.c47 struct token { struct
51 const struct token *next; argument
54 static const struct token t_main[];
55 static const struct token t_fib[];
56 static const struct token t_show[];
57 static const struct token t_show_iface[];
58 static const struct token t_show_iface_af[];
59 static const struct token t_show_disc[];
60 static const struct token t_show_disc_af[];
61 static const struct token t_show_nbr[];
[all …]
/openbsd-src/gnu/usr.bin/perl/plan9/
H A Dgenconfig.pl196 my($token) = shift @words; # and keep constant name
200 $val_vars{$token} = $1;
224 next unless my ($blocked,$un,$token,$val) =
227 delete $pp_vars{$token} if exists $pp_vars{$token};
228 delete $val_vars{$token} if exists $val_vars{$token};
233 if (!length($val) and $val_vars{$token} and ($un || $blocked)) {
234 print OUT "$val_vars{$token}=''\n";
235 delete $val_vars{$token};
239 if ($pp_vars{$token}) {
240 print OUT "$pp_vars{$token}='$state'\n";
[all …]
/openbsd-src/usr.sbin/eigrpctl/
H A Dparser.c49 struct token { struct
53 const struct token *next; argument
56 static const struct token t_main[];
57 static const struct token t_fib[];
58 static const struct token t_show[];
59 static const struct token t_show_iface[];
60 static const struct token t_show_iface_af[];
61 static const struct token t_show_iface_as[];
62 static const struct token t_show_nbr[];
63 static const struct token t_show_nbr_af[];
[all …]
/openbsd-src/usr.sbin/nsd/
H A Dconfigparser.y60 %token <str> STRING
71 %token VAR_SERVER
72 %token VAR_SERVER_COUNT
73 %token VAR_IP_ADDRESS
74 %token VAR_IP_TRANSPARENT
75 %token VAR_IP_FREEBIND
76 %token VAR_REUSEPORT
77 %token VAR_SEND_BUFFER_SIZE
78 %token VAR_RECEIVE_BUFFER_SIZE
79 %token VAR_DEBUG_MODE
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_symbolizer_test.cpp20 char *token; in TEST() local
23 rest = ExtractToken("a;b;c", ";", &token); in TEST()
24 EXPECT_STREQ("a", token); in TEST()
26 InternalFree(token); in TEST()
28 rest = ExtractToken("aaa-bbb.ccc", ";.-*", &token); in TEST()
29 EXPECT_STREQ("aaa", token); in TEST()
31 InternalFree(token); in TEST()
35 int token; in TEST() local
36 const char *rest = ExtractInt("123,456;789", ";,", &token); in TEST()
37 EXPECT_EQ(123, token); in TEST()
[all …]
/openbsd-src/usr.sbin/acme-client/
H A Djsmn.c45 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token() argument
47 token->type = type; in jsmn_fill_token()
48 token->start = start; in jsmn_fill_token()
49 token->end = end; in jsmn_fill_token()
50 token->size = 0; in jsmn_fill_token()
58 jsmntok_t *token; in jsmn_parse_primitive() local
89 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive()
90 if (token == NULL) { in jsmn_parse_primitive()
94 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive()
96 token->parent = parser->toksuper; in jsmn_parse_primitive()
[all …]
/openbsd-src/usr.sbin/npppctl/
H A Dparser.c47 struct token { struct
51 const struct token *next; argument
56 static const struct token t_main[];
57 static const struct token t_session[];
58 static const struct token t_clear[];
59 static const struct token t_monitor[];
60 static const struct token t_filter[];
61 static const struct token t_ppp_id[];
62 static const struct token t_address[];
63 static const struct token t_interface[];
[all …]
/openbsd-src/usr.sbin/relayctl/
H A Dparser.c41 struct token { struct
45 const struct token *next; argument
48 static const struct token t_main[];
49 static const struct token t_show[];
50 static const struct token t_rdr[];
51 static const struct token t_table[];
52 static const struct token t_host[];
53 static const struct token t_rdr_id[];
54 static const struct token t_table_id[];
55 static const struct token t_host_id[];
[all …]
/openbsd-src/usr.sbin/radiusctl/
H A Dparser.c51 struct token { argument
55 const struct token *next;
65 static const struct token t_test[];
66 static const struct token t_secret[];
67 static const struct token t_username[];
68 static const struct token t_test_opts[];
69 static const struct token t_password[];
70 static const struct token t_port[];
71 static const struct token t_method[];
72 static const struct token t_nas_por
50 struct token { global() struct
54 nexttoken global() argument
[all...]
/openbsd-src/usr.sbin/slaacctl/
H A Dparser.c48 struct token { struct
52 const struct token *next; argument
55 static const struct token t_main[];
56 static const struct token t_log[];
57 static const struct token t_show[];
58 static const struct token t_show_interface[];
59 static const struct token t_send[];
60 static const struct token t_send_sol[];
62 static const struct token t_main[] = {
69 static const struct token t_log[] = {
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/binutils/
H A Darparse.y43 %token NEWLINE
44 %token VERBOSE
45 %token <name> FILENAME
46 %token ADDLIB
47 %token LIST
48 %token ADDMOD
49 %token CLEAR
50 %token CREATE
51 %token DELETE
52 %token DIRECTORY
[all …]
/openbsd-src/gnu/usr.bin/binutils/binutils/
H A Darparse.y43 %token NEWLINE
44 %token VERBOSE
45 %token <name> FILENAME
46 %token ADDLIB
47 %token LIST
48 %token ADDMOD
49 %token CLEAR
50 %token CREATE
51 %token DELETE
52 %token DIRECTORY
[all …]
/openbsd-src/usr.sbin/ripctl/
H A Dparser.c46 struct token { struct
50 const struct token *next; argument
53 static const struct token t_main[];
54 static const struct token t_fib[];
55 static const struct token t_show[];
56 static const struct token t_show_iface[];
57 static const struct token t_show_nbr[];
58 static const struct token t_show_rib[];
59 static const struct token t_show_fib[];
60 static const struct token t_log[];
[all …]
/openbsd-src/usr.sbin/unwindctl/
H A Dparser.c44 struct token { struct
48 const struct token *next; argument
51 static const struct token t_main[];
52 static const struct token t_log[];
53 static const struct token t_status[];
55 static const struct token t_main[] = {
62 static const struct token t_log[] = {
69 static const struct token t_status[] = {
76 static const struct token *match_token(const char *, const struct token *,
78 static void show_valid_args(const struct token *);
[all …]
/openbsd-src/usr.sbin/ospf6ctl/
H A Dparser.c47 struct token { struct
51 const struct token *next; argument
54 static const struct token t_main[];
55 static const struct token t_fib[];
56 static const struct token t_show[];
57 static const struct token t_show_iface[];
58 static const struct token t_show_db[];
59 static const struct token t_show_area[];
60 static const struct token t_show_nbr[];
61 static const struct token t_show_rib[];
[all …]
/openbsd-src/usr.sbin/ospfctl/
H A Dparser.c46 struct token { struct
50 const struct token *next; argument
53 static const struct token t_main[];
54 static const struct token t_fib[];
55 static const struct token t_show[];
56 static const struct token t_show_iface[];
57 static const struct token t_show_db[];
58 static const struct token t_show_area[];
59 static const struct token t_show_nbr[];
60 static const struct token t_show_rib[];
[all …]
/openbsd-src/usr.bin/fgen/
H A Dfgen.l1102 TOKEN *token;
1107 while ((token = yylex()) != NULL) {
1108 switch (token->type) {
1110 STATE(token->text, "TOK_NUMBER");
1116 push(strtol(token->text, &end, 16));
1119 value = strtol(token->text, &end, numbase);
1146 STATE(token->text, "TOK_C_LIT");
1151 spit(token->text[1]);
1154 STATE(token->text, "TOK_STRING_LIT:");
1157 char *p = token->text;
[all …]
/openbsd-src/gnu/gcc/libcpp/
H A Dmacro.c94 cpp_token *token = _cpp_temp_token (pfile); in new_string_token() local
97 token->type = CPP_STRING; in new_string_token()
98 token->val.str.len = len; in new_string_token()
99 token->val.str.text = text; in new_string_token()
100 token->flags = 0; in new_string_token()
101 return token; in new_string_token()
359 const cpp_token *token = arg->first[i]; in stringify_arg() local
361 if (token->type == CPP_PADDING) in stringify_arg()
364 source = token->val.source; in stringify_arg()
368 escape_it = (token->type == CPP_STRING || token->type == CPP_WSTRING in stringify_arg()
[all …]
/openbsd-src/usr.sbin/dvmrpctl/
H A Dparser.c44 struct token { struct
48 const struct token *next; argument
51 static const struct token t_main[];
52 static const struct token t_show[];
53 static const struct token t_show_iface[];
54 static const struct token t_show_nbr[];
55 static const struct token t_show_mfc[];
56 static const struct token t_show_rib[];
57 static const struct token t_log[];
59 static const struct token t_main[] = {
[all …]

12345678910>>...24