/titanic_44/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 …]
|
/titanic_44/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_lex.l | 141 return (yytext[0]); 151 return (yytext[0]); 160 yylval.l_string = strdup(yytext); 170 if ((yylval.l_dcmd = mdb_dcmd_lookup(yytext + 2)) == NULL) 171 yyperror("invalid command '%s'", yytext); 183 if ((yylval.l_dcmd = mdb_dcmd_lookup(yytext)) == NULL) 184 yyperror("invalid command '%s'", yytext); 197 arg.a_un.a_char = yytext[2]; 211 yylval.l_dcmd = mdb_dcmd_lookup(yytext); 224 arg.a_un.a_char = yytext[yyleng - 1]; [all …]
|
/titanic_44/usr/src/tools/cscope-fast/ |
H A D | scanner.l | 55 #define notpp() (ppdefine == NO && (*yytext != '#' || yytext[1] == '#')) 129 (void) strcat(yytext, " /* "); 130 first = strlen(yytext); 132 (void) strcat(yytext, "yylex"); 142 (void) strcat(yytext, "yyparse"); 144 last = strlen(yytext); 145 (void) strcat(yytext, " */"); 146 yyleng = strlen(yytext); 362 yytext[0] = '\7'; 366 while (isalnum(yytext[first]) || yytext[first] == '_') { [all …]
|
H A D | crossref.c | 124 strncmp(yytext + first, yytext + in crossref() 218 if ((c = yytext[i]) == ' ' || c == '\t') { in putcrossref() 243 c = yytext[j]; in putcrossref() 244 yytext[j] = '\0'; in putcrossref() 246 putposting(yytext + i, type); in putcrossref() 248 putstring(yytext + i); in putcrossref() 250 yytext[j] = (char)c; in putcrossref() 267 (j = dicode2[(unsigned)yytext[i + 1]]) != 0 && in putcrossref() 293 while ((j = yytext[i]) == ' ' || j == '\t') { in putcrossref() 297 while (isalpha(yytext[i])) { in putcrossref() [all …]
|
/titanic_44/usr/src/cmd/sgs/lex/common/ |
H A D | yyless.c | 49 #pragma weak yytext macro 50 extern CHR yytext[]; 52 #define YYTEXT yytext 65 #pragma weak yytext macro 66 extern CHR yytext[]; 68 #define YYTEXT yytext 80 #pragma weak yytext macro 81 extern CHR yytext[]; 140 yyleng = wcstombs((char *)yytext, YYTEXT, YYLENG*MB_LEN_MAX);
|
H A D | ncform | 58 yylastch = yytext; 61 yylastch = yytext+yyleng; 83 if(yylastch > &yytext[YYLMAX]) { 88 if (yylastch >= &yytext[ yytextsz ]) { 89 int x = yylastch - yytext; 92 if (yytext == yy_tbuf) { 93 yytext = (char *) malloc(yytextsz); 94 memcpy(yytext, yy_tbuf, sizeof (yy_tbuf)); 97 yytext = (char *) realloc(yytext, yytextsz); 98 if (!yytext) { [all …]
|
H A D | reject.c | 40 #pragma weak yytext macro 44 #define YYTEXT yytext 55 #pragma weak yytext macro 59 #define YYTEXT yytext 69 #pragma weak yytext macro 82 extern unsigned char yytext[]; 136 yyleng = wcstombs((char *)yytext, YYTEXT, YYLENG*MB_LEN_MAX); in YYREJECT() 164 yyleng = wcstombs((char *)yytext, YYTEXT, YYLENG*MB_LEN_MAX); in yyracc()
|
H A D | nrform | 53 common /yyxel/ yyleng, yytext 54 integer yyfnd, yymorf, yylsta, yylsp, yytext, yyprev, yyleng, yytop 55 integer lexshf, yytext(YYLMAX), yyback, yybgin 77 yytext(yyleng) = ch 84 call unput(yytext(yyleng)) 99 call unput(yytext(yyleng)) 111 call unput(yytext(yyleng)) 126 call unput(yytext(yyleng)) 146 call unput(yytext(yyleng)) 150 yyprev = lexshf(yytext(yyleng)) [all …]
|
H A D | nceucform | 103 yytext = (wchar_t *) 106 memcpy(yytext, yy_tbuf, 121 yytext = (wchar_t *) 122 realloc(yytext, 242 yyleng=wcstombs((char *)yytext, YYTEXT, sizeof(yytext)-1); 244 if(yyleng>=sizeof(yytext)-1) 245 fprintf(yyout, "yytext[] too short\n");
|
/titanic_44/usr/src/cmd/pools/poolcfg/ |
H A D | poolcfg.l | 172 yylval.ival = strtoll(yytext, NULL, 0); 182 yylval.uval = strtoull(yytext, NULL, 0); 193 if (strcmp(yytext, "true") == 0) 202 if((yylval.sval = strdup(yytext+1)) == NULL) { 213 yylval.dval = strtod(yytext, (char **)NULL); 223 if ((yylval.sval = strdup(yytext)) == NULL) { 231 if ((yylval.sval = strdup(yytext)) == NULL) { 249 if (yytext[0] == '\0') { 255 yytext); 257 if (yytext[0] == '\0') { [all …]
|
/titanic_44/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 …]
|
/titanic_44/usr/src/cmd/oawk/ |
H A D | awk.lx.l | 53 #define CADD { cbuf[clen++]=yytext[0]; if (clen>=CBUFLEN-1) { yyerror(\ 109 if (watoi(yytext+1)==0) { 113 yylval = fieldadr(watoi(yytext+1)); 119 yylval = (int)setsymtab(yytext, NULL, 0.0, NUM, symtab); 122 yylval = (int)setsymtab(yytext, NULL, watof(yytext), 151 yylval = (int)setsymtab(yytext, tostring(L_0), 0.0, STR|NUM, 161 <A>. { yylval = yytext[0]; RETURN(yytext[0]); } 175 <reg>\\{D}{D}{D} { wsscanf(yytext+1, "%o", &yylval); RETURN(CHAR); } 176 <reg>\\. { if (yytext[1]=='n') yylval = '\n'; 177 else if (yytext[1] == 't') yylval = '\t'; [all …]
|
/titanic_44/usr/src/cmd/awk/ |
H A D | awk.lx.l | 60 # define RET(x) {if(dbg)printf("lex %s [%s]\n", tokname(x), yytext); return(x); } 73 #define CADD cbuf[clen++] = yytext[0]; \ 136 <A>"$"{D}+ { yylval.cp = fieldadr(atoi(yytext+1)); RET(FIELD); } 140 if (c == '(' || c == '[' || infunc && (n=isarg(yytext+1)) >= 0) { 141 unputstr(yytext+1); 144 yylval.cp = setsymtab((uchar *)yytext+1, 150 <A>NF { yylval.cp = setsymtab((uchar *)yytext, (uchar *)"", 0.0, NUM, symtab); RET(VARNF); } 153 … yylval.cp = setsymtab((uchar *)yytext, tostring((uchar *)yytext), atof(yytext), CON|NUM, symtab); 194 if (c != '(' && infunc && (n=isarg(yytext)) >= 0) { 198 yylval.cp = setsymtab((uchar *)yytext, [all …]
|
/titanic_44/usr/src/cmd/ipf/tools/ |
H A D | lexer.c | 42 int yytext[YYBUFSIZ+1]; variable 70 c = yytext[yypos++]; 94 yytext[yypos++] = c; 96 yytext[yypos] = '\0'; 107 yytext[--yypos] = c; 132 yychars[i] = (char)(yytext[i] & 0xff); in yytexttochar() 149 yytext[yylast++] = *s; 150 yytext[yylast] = '\0'; 160 if ((yytext[offset] == '\'' || yytext[offset] == '"') && 161 (yytext[offset] == yytext[offset + max - 1])) { [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg_lex.l | 219 yylval.strval = safe_strdup(yytext); 224 yylval.strval = safe_strdup(yytext); 229 yylval.strval = safe_strdup(yytext); 234 yylval.strval = safe_strdup(yytext); 240 return (yytext[0]); 246 return (yytext[0]); 252 return (yytext[0]); 273 if (yytext[0] == '\0') { 285 lex_lineno, (yytext[0] == '\n') ? "\\n" : yytext); 288 (yytext[0] == '\n') ? "\\n" : yytext);
|
/titanic_44/usr/src/cmd/geniconvtbl/ |
H A D | itm_comp.l | 78 yylval.num = strtoul(yytext, (char **)NULL, 10); 82 {OCTAL} { yylval.num = strtoul(yytext, (char **)NULL, 8); 86 {HEXADECIMAL} { yylval.data = hexadecimal_data(yyleng - 2, yytext + 2); 90 {ITMNAME} { yylval.data = str_to_data(yyleng, yytext); 94 {ATNAME} { return at_name_to_token(yytext); 97 {MAPTYPE_NAME} { yylval.num = at_name_to_token(yytext); 98 yylval.data = name_data(yyleng, yytext); 103 {NAME} { yylval.num = at_name_to_token(yytext); 107 yylval.data = name_data(yyleng, yytext); 149 cmd_opt.my_name, yytext[0]); [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | gram.y | 193 static char yytext[INMAX]; in yylex() local 234 cp1 = yytext; in yylex() 235 cp2 = &yytext[INMAX - 1]; in yylex() 259 yylval.string = makestr(yytext); in yylex() 268 cp1 = yytext; in yylex() 269 cp2 = &yytext[INMAX - 1]; in yylex() 292 if (yytext[0] == '-' && yytext[2] == '\0') { in yylex() 293 switch (yytext[1]) { in yylex() 323 if (!strcmp(yytext, "install")) in yylex() 325 else if (!strcmp(yytext, "notify")) in yylex() [all …]
|
/titanic_44/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 346 yylval.strval = create_token(yytext); 351 yylval.strval = create_token(yytext); 356 yylval.strval = create_token(yytext); 361 yylval.strval = create_token(yytext + 1); 368 yylval.strval = create_token(yytext + 1); 376 return (yytext[0]); 382 return (yytext[0]); 388 return (yytext[0]); 516 if (yytext[0] == '\0') { 528 lex_lineno, (yytext[0] == '\n') ? "\\n" : yytext); [all …]
|
/titanic_44/usr/src/cmd/fm/fminject/common/ |
H A D | inj_lex.l | 95 yylval.l_string = inj_strndup(yytext + 1, yyleng - 2); 100 yylval.l_string = inj_strdup(yytext); 105 yylval.l_string = inj_strdup(yytext); 110 yylval.l_string = inj_strdup(yytext); 116 . { return (yytext[0]); } 139 (void) fprintf(stderr, " near \"%s\"\n", yytext);
|
/titanic_44/usr/src/cmd/sgs/librtld_db/demo/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);
|
/titanic_44/usr/src/cmd/msgfmt/ |
H A D | xgettext.c | 47 extern char yytext[]; 497 (void) printf("Macro line=<%s>\n", yytext); in handle_macro_line() 500 lstrcat(curr_line, yytext); in handle_macro_line() 503 lstrcat(qstring_buf, yytext); in handle_macro_line() 505 extract_filename_linenumber(yytext); in handle_macro_line() 519 lstrcat(curr_line, yytext); in handle_cplus_comment_line() 522 lstrcat(qstring_buf, yytext); in handle_cplus_comment_line() 544 lstrcat(curr_line, yytext); in handle_open_comment() 547 lstrcat(qstring_buf, yytext); in handle_open_comment() 569 lstrcat(curr_line, yytext); in handle_close_comment() [all …]
|
/titanic_44/usr/src/lib/libfru/libfru/ |
H A D | nameSyntaxLex.l | 60 [0-9]+ { yylval.num = atoi (yytext); return NUMBER; } 61 [_a-zA-Z0-9]+ { yylval.name = strdup(yytext); return NAME; }
|
/titanic_44/usr/src/lib/libsec/common/ |
H A D | acl_lex.l | 226 yylval.str = strdup(yytext); 351 yylval.str = strdup(yytext); 489 if (yytext[0] != '\n' && yytext[0] != '\0') { 598 yylval.str = strdup(yytext); 639 if (yytext[0] != '\n' && yytext[0] != '\0') { 667 yylval.str = strdup(yytext); 677 yylval.str = strdup(yytext); 770 cnt = strlen(yytext); 776 strcpy(yylval.str, yytext);
|
/titanic_44/usr/src/cmd/tnf/prex/ |
H A D | prexlex.l | 103 ${ID} { yylval.strval = strdup(&yytext[1]); return SETNAME; } 104 &{ID} { yylval.strval = strdup(&yytext[1]); return FCNNAME; } 105 {ID} { yylval.strval = strdup(yytext); return IDENT; }
|
/titanic_44/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb_lex.l | 124 [-0-9a-zA-Z._]+ { yylval.strval = yytext; return WORD; } 126 . { return yytext[0]; } 135 cmd_no, yytext);
|