/illumos-gate/usr/src/cmd/genmsg/ |
H A D | genmsg.l | 88 (void) fprintf(newfp, "%s", yytext); 94 (void) fprintf(newfp, "%s", yytext); 108 (void) fprintf(newfp, "%s", yytext); 122 (void) fprintf(newfp, "%c", yytext[0]); 127 return (yytext[0]); 133 (void) fprintf(newfp, "%c", yytext[0]); 138 return (yytext[0]); 144 (void) fprintf(newfp, "%s", yytext); 155 (void) fprintf(newfp, "%s", yytext); 166 (void) fprintf(newfp, "%s", yytext); [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_lex.l | 147 return (yytext[0]); 157 return (yytext[0]); 166 yylval.l_string = strdup(yytext); 176 if ((yylval.l_dcmd = mdb_dcmd_lookup(yytext + 2)) == NULL) 177 yyperror("invalid command '%s'", yytext); 189 if ((yylval.l_dcmd = mdb_dcmd_lookup(yytext)) == NULL) 190 yyperror("invalid command '%s'", yytext); 203 arg.a_un.a_char = yytext[2]; 217 yylval.l_dcmd = mdb_dcmd_lookup(yytext); 230 arg.a_un.a_char = yytext[yyleng - 1]; [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | scanner.l | 53 #define notpp() (ppdefine == NO && (*yytext != '#' || yytext[1] == '#')) 127 (void) strcat(yytext, " /* "); 128 first = strlen(yytext); 130 (void) strcat(yytext, "yylex"); 140 (void) strcat(yytext, "yyparse"); 142 last = strlen(yytext); 143 (void) strcat(yytext, " */"); 144 yyleng = strlen(yytext); 360 yytext[0] = '\7'; 364 while (isalnum(yytext[first]) || yytext[first] == '_') { [all …]
|
H A D | crossref.c | 122 strncmp(yytext + first, yytext + in crossref() 216 if ((c = yytext[i]) == ' ' || c == '\t') { in putcrossref() 241 c = yytext[j]; in putcrossref() 242 yytext[j] = '\0'; in putcrossref() 244 putposting(yytext + i, type); in putcrossref() 246 putstring(yytext + i); in putcrossref() 248 yytext[j] = (char)c; in putcrossref() 265 (j = dicode2[(unsigned)yytext[i + 1]]) != 0 && in putcrossref() 291 while ((j = yytext[i]) == ' ' || j == '\t') { in putcrossref() 295 while (isalpha(yytext[i])) { in putcrossref() [all …]
|
H A D | display.c | 225 linenum, yytext) < 4) { in display() 269 while ((s = strchr(yytext, '\t')) != NULL) { in display() 273 s = yytext; in display() 503 function, linenum, yytext)) != EOF) { in countrefs()
|
H A D | global.h | 175 extern unsigned char yytext[]; /* input line text */ 177 extern char yytext[]; /* input line text */
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_lex.l | 183 int i = atoi(yytext + 2); 197 "not defined\n", yytext); 213 int i = atoi(yytext + 1); 227 "not defined\n", yytext); 274 " overflow\n", yytext, v); 285 yypcb->pcb_hdl->dt_macros, yytext + 2); 291 "is not defined\n", yytext); 307 yypcb->pcb_hdl->dt_macros, yytext + 1); 311 "is not defined\n", yytext); 329 return (id_or_type(yytext)); [all …]
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | yyless.c | 47 #pragma weak yytext macro 48 extern CHR yytext[]; 50 #define YYTEXT yytext 63 #pragma weak yytext macro 64 extern CHR yytext[]; 66 #define YYTEXT yytext 78 #pragma weak yytext macro 79 extern CHR yytext[]; 130 yyleng = wcstombs((char *)yytext, YYTEXT, YYLENG*MB_LEN_MAX); in yyless()
|
H A D | ncform | 54 yylastch = yytext; 57 yylastch = yytext+yyleng; 79 if(yylastch > &yytext[YYLMAX]) { 84 if (yylastch >= &yytext[ yytextsz ]) { 85 int x = yylastch - yytext; 88 if (yytext == yy_tbuf) { 89 yytext = (char *) malloc(yytextsz); 90 memcpy(yytext, yy_tbuf, sizeof (yy_tbuf)); 93 yytext = (char *) realloc(yytext, yytextsz); 94 if (!yytext) { [all …]
|
H A D | reject.c | 38 #pragma weak yytext macro 42 #define YYTEXT yytext 53 #pragma weak yytext macro 57 #define YYTEXT yytext 67 #pragma weak yytext macro 80 extern unsigned char yytext[]; 129 yyleng = wcstombs((char *)yytext, YYTEXT, YYLENG*MB_LEN_MAX); in YYREJECT() 153 yyleng = wcstombs((char *)yytext, YYTEXT, YYLENG*MB_LEN_MAX); in yyracc()
|
H A D | nrform | 51 common /yyxel/ yyleng, yytext 52 integer yyfnd, yymorf, yylsta, yylsp, yytext, yyprev, yyleng, yytop 53 integer lexshf, yytext(YYLMAX), yyback, yybgin 75 yytext(yyleng) = ch 82 call unput(yytext(yyleng)) 97 call unput(yytext(yyleng)) 109 call unput(yytext(yyleng)) 124 call unput(yytext(yyleng)) 144 call unput(yytext(yyleng)) 148 yyprev = lexshf(yytext(yyleng)) [all …]
|
H A D | nceucform | 97 yytext = (wchar_t *) 100 memcpy(yytext, yy_tbuf, 115 yytext = (wchar_t *) 116 realloc(yytext, 236 yyleng=wcstombs((char *)yytext, YYTEXT, sizeof(yytext)-1); 238 if(yyleng>=sizeof(yytext)-1) 239 fprintf(yyout, "yytext[] too short\n");
|
/illumos-gate/usr/src/cmd/pools/poolcfg/ |
H A D | poolcfg.l | 171 yylval.ival = strtoll(yytext, NULL, 0); 182 yylval.uval = strtoull(yytext, NULL, 0); 194 if (strcmp(yytext, "true") == 0) 203 if((yylval.sval = strdup(yytext+1)) == NULL) { 215 yylval.dval = strtod(yytext, (char **)NULL); 226 if ((yylval.sval = strdup(yytext)) == NULL) { 235 if ((yylval.sval = strdup(yytext)) == NULL) { 254 if (yytext[0] == '\0') { 260 yytext); 262 if (yytext[0] == '\0') { [all …]
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | awk.lx.l | 50 #define CADD { cbuf[clen++]=yytext[0]; if (clen>=CBUFLEN-1) { yyerror(\ 106 if (watoi(yytext+1)==0) { 110 yylval = fieldadr(watoi(yytext+1)); 116 yylval = (int)setsymtab(yytext, NULL, 0.0, NUM, symtab); 119 yylval = (int)setsymtab(yytext, NULL, watof(yytext), 148 yylval = (int)setsymtab(yytext, tostring(L_0), 0.0, STR|NUM, 158 <A>. { yylval = yytext[0]; RETURN(yytext[0]); } 172 <reg>\\{D}{D}{D} { wsscanf(yytext+1, "%o", &yylval); RETURN(CHAR); } 173 <reg>\\. { if (yytext[1]=='n') yylval = '\n'; 174 else if (yytext[1] == 't') yylval = '\t'; [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | lexer.c | 42 int yytext[YYBUFSIZ+1]; variable 69 c = yytext[yypos++]; in yygetc() 93 yytext[yypos++] = c; in yygetc() 95 yytext[yypos] = '\0'; in yygetc() 105 yytext[--yypos] = c; in yyunputc() 129 yychars[i] = (char)(yytext[i] & 0xff); in yytexttochar() 145 yytext[yylast++] = *s; in yystrtotext() 146 yytext[yylast] = '\0'; in yystrtotext() 155 if ((yytext[offset] == '\'' || yytext[offset] == '"') && in yytexttostr() 156 (yytext[offset] == yytext[offset + max - 1])) { in yytexttostr() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg_lex.l | 222 yylval.strval = safe_strdup(yytext); 227 yylval.strval = safe_strdup(yytext); 232 yylval.strval = safe_strdup(yytext); 237 yylval.strval = safe_strdup(yytext); 243 return (yytext[0]); 249 return (yytext[0]); 255 return (yytext[0]); 276 if (yytext[0] == '\0') { 288 lex_lineno, (yytext[0] == '\n') ? "\\n" : yytext); 291 (yytext[0] == '\n') ? "\\n" : yytext);
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | itm_comp.l | 76 yylval.num = strtoul(yytext, (char **)NULL, 10); 80 {OCTAL} { yylval.num = strtoul(yytext, (char **)NULL, 8); 84 {HEXADECIMAL} { yylval.data = hexadecimal_data(yyleng - 2, yytext + 2); 88 {ITMNAME} { yylval.data = str_to_data(yyleng, yytext); 92 {ATNAME} { return at_name_to_token(yytext); 95 {MAPTYPE_NAME} { yylval.num = at_name_to_token(yytext); 96 yylval.data = name_data(yyleng, yytext); 101 {NAME} { yylval.num = at_name_to_token(yytext); 105 yylval.data = name_data(yyleng, yytext); 147 cmd_opt.my_name, yytext[0]); [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | gram.y | 193 static char yytext[INMAX]; in yylex() local 235 cp1 = yytext; in yylex() 236 cp2 = &yytext[INMAX - 1]; in yylex() 260 yylval.string = makestr(yytext); in yylex() 269 cp1 = yytext; in yylex() 270 cp2 = &yytext[INMAX - 1]; in yylex() 293 if (yytext[0] == '-' && yytext[2] == '\0') { in yylex() 294 switch (yytext[1]) { in yylex() 324 if (!strcmp(yytext, "install")) in yylex() 326 else if (!strcmp(yytext, "notify")) in yylex() [all …]
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 357 yylval.strval = create_token(yytext); 362 yylval.strval = create_token(yytext); 367 yylval.strval = create_token(yytext); 372 yylval.strval = create_token(yytext + 1); 379 yylval.strval = create_token(yytext + 1); 387 return (yytext[0]); 393 return (yytext[0]); 399 return (yytext[0]); 527 if (yytext[0] == '\0') { 539 lex_lineno, (yytext[0] == '\n') ? "\\n" : yytext); [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_lex.l | 93 yylval.l_string = inj_strndup(yytext + 1, yyleng - 2); 98 yylval.l_string = inj_strdup(yytext); 103 yylval.l_string = inj_strdup(yytext); 108 yylval.l_string = inj_strdup(yytext); 114 . { return (yytext[0]); } 137 (void) fprintf(stderr, " near \"%s\"\n", yytext);
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/ |
H A D | lex.l | 47 {hexnumber} {yylval.addr = hexstr_to_num(yytext); return (NUMBER);} 48 {decnumber} {yylval.addr = atoi(yytext); return (NUMBER);} 66 {symbol} {yylval.str = strdup(yytext); return (SYMBOL);} 68 yylval.str = strdup(yytext + 1); 72 yylval.str = strdup(yytext + 1);
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | xgettext.c | 46 extern char yytext[]; 494 (void) printf("Macro line=<%s>\n", yytext); in handle_macro_line() 497 lstrcat(curr_line, yytext); in handle_macro_line() 500 lstrcat(qstring_buf, yytext); in handle_macro_line() 502 extract_filename_linenumber(yytext); in handle_macro_line() 516 lstrcat(curr_line, yytext); in handle_cplus_comment_line() 519 lstrcat(qstring_buf, yytext); in handle_cplus_comment_line() 541 lstrcat(curr_line, yytext); in handle_open_comment() 544 lstrcat(qstring_buf, yytext); in handle_open_comment() 566 lstrcat(curr_line, yytext); in handle_close_comment() [all …]
|
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | acl_lex.l | 228 yylval.str = strdup(yytext); 353 yylval.str = strdup(yytext); 491 if (yytext[0] != '\n' && yytext[0] != '\0') { 600 yylval.str = strdup(yytext); 641 if (yytext[0] != '\n' && yytext[0] != '\0') { 669 yylval.str = strdup(yytext); 679 yylval.str = strdup(yytext); 772 cnt = strlen(yytext); 778 strcpy(yylval.str, yytext);
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | nameSyntaxLex.l | 58 [0-9]+ { yylval.num = atoi (yytext); return NUMBER; } 59 [_a-zA-Z0-9]+ { yylval.name = strdup(yytext); return NAME; }
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb_lex.l | 122 [-0-9a-zA-Z._]+ { yylval.strval = yytext; return WORD; } 124 . { return yytext[0]; } 133 cmd_no, yytext);
|