/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_scanner.c | 38 char yytext[MAX_LEXEME]; /* Buffer for storing the input text/lexeme */ variable 724 yytext[0] = (char)ch; in yylex() 725 yytext[1] = '\0'; in yylex() 737 yytext[i] = (char)ch; in yylex() 756 if (i >= COUNTOF(yytext)) in yylex() 769 yytext[i++] = (char)ch; in yylex() 770 if (i >= COUNTOF(yytext)) in yylex() 774 * yytext[i] will be pushed back as not part of in yylex() 788 yytext[i] = '\0'; in yylex() 799 token = is_keyword(yytext, in yylex() [all...] |
/freebsd/sys/dev/aic7xxx/aicasm/ |
H A D | aicasm_scan.l | 126 yptr = yytext; 239 yylval.value = strtol(yytext, NULL, 8); 244 yylval.value = strtoul(yytext + 2, NULL, 16); 249 yylval.value = strtol(yytext, NULL, 10); 258 <INCLUDE>[<] { return yytext[0]; } 259 <INCLUDE>[>] { BEGIN INITIAL; return yytext[0]; } 264 return yytext[0]; 269 yptr = yytext; 286 yptr = yytext; 290 yylval.sym = symtable_get(yytext); [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_lex.l | 219 int i = atoi(yytext + 2); 233 "not defined\n", yytext); 249 int i = atoi(yytext + 1); 263 "not defined\n", yytext); 310 " overflow\n", yytext, v); 321 yypcb->pcb_hdl->dt_macros, yytext + 2); 327 "is not defined\n", yytext); 343 yypcb->pcb_hdl->dt_macros, yytext + 1); 347 "is not defined\n", yytext); 365 return (id_or_type(yytext)); [all …]
|
/freebsd/sbin/ipf/common/ |
H A D | lexer.c | 40 int yytext[YYBUFSIZ+1]; variable 69 c = yytext[yypos++]; in yygetc() 93 yytext[yypos++] = c; in yygetc() 95 yytext[yypos] = '\0'; in yygetc() 106 yytext[--yypos] = c; in yyunputc() 132 yychars[i] = (char)(yytext[i] & 0xff); in yytexttochar() 149 yytext[yylast++] = *s; in yystrtotext() 150 yytext[yylast] = '\0'; in yystrtotext() 160 if ((yytext[offset] == '\'' || yytext[offset] == '"') && in yytexttostr() 161 (yytext[offset] == yytext[offset + max - 1])) { in yytexttostr() [all …]
|
/freebsd/usr.sbin/kbdcontrol/ |
H A D | lex.l | 133 sscanf(yytext+4, "%d", &number); 137 sscanf(yytext+3, "%d", &number); 140 '{A}' { letter = *(yytext+1); return TLET; } 142 0x{X}({X}*) { sscanf(yytext, "%x", &number); return TNUM; } 143 {D}({D}*) { sscanf(yytext, "%d", &number); return TNUM; } 145 if (*yytext == 'O') number = 0; 146 if (*yytext == 'C') number = 1; 147 if (*yytext == 'N') number = 2; 148 if (*yytext == 'B') number = 3; 152 . { return *yytext; }
|
/freebsd/contrib/flex/src/ |
H A D | scan.l | 48 #define ACTION_ECHO add_action( yytext ) 72 yylval = (unsigned char) yytext[0]; \ 78 strncpy( nmstr, yytext, sizeof(nmstr) ); \ 211 strncpy( nmstr, yytext, sizeof(nmstr) ); 258 [[:digit:]]+ linenum = myctoi( yytext ); 464 strncpy( nmstr, yytext + 1, sizeof(nmstr) ); 477 yytext ); 556 int amt = (int) (strchr (yytext, '|') - yytext); 641 strncpy( nmstr, yytext, sizeof(nmstr) ); 694 end_ch = yytext[yyleng-1]; [all …]
|
H A D | yylex.c | 40 extern char *yytext; 180 fprintf (stderr, "%s ", yytext); in yylex() 197 fprintf (stderr, "%s", yytext); in yylex()
|
/freebsd/usr.bin/m4/ |
H A D | tokenizer.l | 64 . { return yytext[0]; } 73 l = strtol(yytext, NULL, 0); 76 m4_warnx("numeric overflow in expr: %s", yytext); 90 base = strtol(yytext+2, &next, 0); in parse_radix() 92 m4_warnx("error in number %s", yytext); in parse_radix() 105 m4_warnx("error in number %s", yytext); in parse_radix()
|
/freebsd/usr.sbin/bluetooth/bthidd/ |
H A D | lexer.l | 103 return (bt_aton(yytext, &yylval.bdaddr)? 110 yylval.num = strtoul(yytext, &ep, 16); 118 yylval.num = strtoul(yytext, &ep, 16); 124 yytext[strlen(yytext) - 1] = 0; 125 yylval.string = &yytext[1];
|
/freebsd/contrib/netbsd-tests/lib/libcurses/director/ |
H A D | testlang_conf.l | 181 if (yytext[0] != '/') { 193 if (strlcat(inc_file, yytext, sizeof(inc_file)) 305 if (sscanf(yytext, "%lx", &val) != 1) 314 if ((yylval.string = strdup(yytext)) == NULL) 320 if ((yylval.string = strdup(yytext)) == NULL) 328 if ((yylval.string = dequote(yytext, &len)) == NULL) 336 if ((yylval.string = dequote(yytext, &len)) == NULL) 347 p = yytext; 367 p = yytext; 393 p = yytext; [all …]
|
/freebsd/usr.bin/mkcsmapper/ |
H A D | lex.l | 68 "="|"/"|"-" { return ((int)yytext[0]); } 71 yylval.i_value = strtoul(yytext, NULL, 0); 91 len = strlen(yytext); 93 strlcpy(yylval.s_value, yytext + 1, len - 1); 97 yylval.s_value = strdup(yytext);
|
/freebsd/usr.sbin/bluetooth/hcsecd/ |
H A D | lexer.l | 80 yylval.string = yytext; 85 yylval.string = &yytext[2]; 90 yytext[strlen(yytext) - 1] = 0; 91 yylval.string = &yytext[1];
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | lex.l | 149 [-,;{}()|] { return *yytext; } 150 "[" { return *yytext; } 151 "]" { return *yytext; } 257 -?0x[0-9A-Fa-f]+|-?[0-9]+ { char *e, *y = yytext; 258 yylval.constant = strtoll((const char *)yytext, 261 lex_error_message("malformed constant (%s)", yytext); 266 yylval.name = estrdup ((const char *)yytext); 273 . { lex_error_message("Ignoring char(%c)\n", *yytext); }
|
/freebsd/sbin/veriexec/ |
H A D | manifest_lexer.l | 53 yylval.string = strdup(yytext); 73 int skip = atoi(&yytext[2]); 75 VERBOSE(3, ("%s: skip if %d <= %d\n", yytext, parser_version, skip)); 78 yytext[yyleng - 1] = '#'; 142 manifest_file, lineno, string, yytext);
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_qos_parser_l.l | 53 #define HANDLE_IF_IN_DESCRIPTION if (in_description) { yylval = strdup(yytext); return TK_TEXT; } 271 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_ROUTER; yylval = strdup(yytext); return TK_TEXT; } 272 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_CA; yylval = strdup(yytext); return TK_TEXT; } 273 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_SWITCH; yylval = strdup(yytext); return TK_TEXT; } 274 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_SELF; yylval = strdup(yytext); return TK_TEXT; } 275 … SAVE_POS; if (in_node_type) return TK_NODE_TYPE_ALL; yylval = strdup(yytext); return TK_TEXT; } 300 yylval = strdup(yytext); 308 yylval = strdup(yytext); 319 yylval = strdup(yytext); 329 yylval = strdup(yytext); [all …]
|
/freebsd/usr.bin/mkesdb/ |
H A D | lex.l | 71 yylval.i_value = strtoul(yytext, NULL, 0); 84 len = strlen(yytext); 86 strlcpy(yylval.s_value, yytext + 1, len - 1); 90 yylval.s_value = strdup(yytext);
|
/freebsd/usr.sbin/apmd/ |
H A D | apmdlex.l | 88 yylval.i = atoi(yytext); 92 yylval.i = -atoi(yytext); 111 <TOP>[^"{},;#\n\t ]+ { yylval.str = strdup(yytext); return UNKNOWN; } 117 syslog(LOG_ERR, "line %d: %s%s %s.\n", lineno, yytext, yytext?":":"", s);
|
/freebsd/usr.sbin/jail/ |
H A D | jaillex.l | 73 return yytext[0]; 94 skip = yytext[0] == '"' ? 1 : 0; 143 <_>. return yytext[0]; 164 se = yytext + (yyleng - trimr); 165 for (s = yytext + triml; s < se; s++, d++) { 169 return s - yytext;
|
/freebsd/usr.bin/lex/ |
H A D | initscan.c | 336 extern char *yytext; 340 #define yytext_ptr yytext 1846 char *yytext; variable 1894 #define ACTION_ECHO add_action( yytext ) 1918 yylval = (unsigned char) yytext[0]; \ 1924 strncpy( nmstr, yytext, sizeof(nmstr) ); \ 2101 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) 2186 (yytext[yyleng - 1] == '\n'); \ 2401 strncpy( nmstr, yytext, sizeof(nmstr) ); 2515 linenum = myctoi( yytext ); [all …]
|
/freebsd/sbin/ipf/iplang/ |
H A D | iplang_l.l | 181 fprintf(stderr, "%s error at \"%s\", line %d\n", msg, yytext, 215 yylval.str = strdup((char *)yytext); 225 printf("text=[%s] id=%d next=%d\n", yytext, nstate, next); 233 if (!strcasecmp(wt->word, (char *)yytext)) 236 printf("unknown keyword=[%s]\n", yytext); 239 yylval.num = atoi((char *)yytext);
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | token.l | 75 [0-9]+ { DP; yylval.num = atoi(yytext); return NUM; } 76 …\^\&\*\(\)\+\=\|\;\?\,\.\[\]\-\:]*\" { DP; yylval.str = strndup(yytext + 1, strlen(yytext) - 2); r…
|
/freebsd/contrib/com_err/ |
H A D | lex.l | 67 [0-9]+ { yylval.number = atoi(yytext); return NUMBER; } 72 [a-zA-Z0-9_]+ { yylval.string = strdup(yytext); return STRING; } 73 . { return *yytext; }
|
/freebsd/crypto/heimdal/lib/com_err/ |
H A D | lex.l | 67 [0-9]+ { yylval.number = atoi(yytext); return NUMBER; } 72 [a-zA-Z0-9_]+ { yylval.string = strdup(yytext); return STRING; } 73 . { return *yytext; }
|
/freebsd/contrib/unbound/util/ |
H A D | configlexer.c | 336 extern char *yytext; 340 #define yytext_ptr yytext 4310 char *yytext; variable 4344 #define ECHO ub_c_error_msg("syntax error at text: %s", yytext) 4350 LEXOUT(("v(%s%d) ", yytext, num_args)); \ 4611 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) 4807 LEXOUT(("comment(%s) ", yytext)); /* ignore */ } 6703 { LEXOUT(("STR(%s) ", yytext)); yymore(); } 6719 yytext[yyleng - 1] = '\0'; 6720 yylval.str = strdup(yytext); [all …]
|
/freebsd/usr.sbin/autofs/ |
H A D | common.c | 64 extern char *yytext; 776 key = checked_strdup(yytext); in parse_map_yyin() 783 } else if (yytext[0] == '-') { in parse_map_yyin() 791 options = checked_strdup(yytext + 1); in parse_map_yyin() 824 if (yytext[0] == '/') { in parse_map_yyin() 833 mountpoint = checked_strdup(yytext); in parse_map_yyin() 837 if (yytext[0] == '-') { in parse_map_yyin() 846 options2 = checked_strdup(yytext + 1); in parse_map_yyin() 859 if (yytext[0] == ':') { in parse_map_yyin() 860 location = checked_strdup(yytext + 1); in parse_map_yyin() [all …]
|