Home
last modified time | relevance | path

Searched refs:yytext (Results 1 – 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/cmd/genmsg/
H A Dgenmsg.l127 return (yytext[0]);
138 return (yytext[0]);
233 return (yytext[0]);
240 yylval.id = atoi(yytext);
251 yylval.id = atoi(yytext);
256 yytext);
266 yytext);
279 yylval.id = atoi(yytext);
329 yytext);
346 yytext);
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_lex.l147 return (yytext[0]);
157 return (yytext[0]);
236 return yytext[0];
245 return (yytext[0]);
379 switch (yytext[2]) {
400 switch (yytext[2]) {
521 return (yytext[0]);
589 s = strchr2esc(yytext, strlen(yytext));
761 char yytext[YYLMAX];
818 yytext = s->yytext;
[all …]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dscanner.l53 #define notpp() (ppdefine == NO && (*yytext != '#' || yytext[1] == '#'))
128 first = strlen(yytext);
142 last = strlen(yytext);
144 yyleng = strlen(yytext);
360 yytext[0] = '\7';
364 while (isalnum(yytext[first]) || yytext[first] == '_') {
543 yytext[yyleng] = '\0';
698 first = s - yytext;
702 yytext[0] = '\1';
911 yytext[yyleng] = '\0';
[all …]
H A Dcrossref.c122 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()
291 while ((j = yytext[i]) == ' ' || j == '\t') { in putcrossref()
295 while (isalpha(yytext[i])) { in putcrossref()
300 while ((j = yytext[i]) == ' ' || in putcrossref()
[all …]
H A Ddisplay.c225 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 Dglobal.h175 extern unsigned char yytext[]; /* input line text */
177 extern char yytext[]; /* input line text */
/illumos-gate/usr/src/cmd/sgs/lex/common/
H A Dyyless.c47 #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 Dncform54 yylastch = yytext;
57 yylastch = yytext+yyleng;
85 int x = yylastch - yytext;
88 if (yytext == yy_tbuf) {
93 yytext = (char *) realloc(yytext, yytextsz);
94 if (!yytext) {
96 "Cannot realloc yytext\n");
99 yylastch = yytext + x;
200 yytext[yyleng] = 0;
204 sprint(yytext);
[all …]
H A Dreject.c38 #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 Dnrform51 common /yyxel/ yyleng, yytext
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))
152 yytext(yyleng+1) = 0
155 call unput(yytext(yyleng))
[all …]
H A Dnceucform97 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/lib/libdtrace/common/
H A Ddt_lex.l183 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);
329 return (id_or_type(yytext));
353 yyintdecimal = yytext[0] != '0';
588 char *p = strchr(yytext, '*');
589 char *q = yytext + yyleng - 1;
591 if (p != NULL && p > yytext)
[all …]
/illumos-gate/usr/src/cmd/pools/poolcfg/
H A Dpoolcfg.l171 yylval.ival = strtoll(yytext, NULL, 0);
181 yylval.uval = strtoull(yytext, NULL, 0);
192 if (strcmp(yytext, "true") == 0)
201 if((yylval.sval = strdup(yytext+1)) == NULL) {
212 yylval.dval = strtod(yytext, (char **)NULL);
222 if ((yylval.sval = strdup(yytext)) == NULL) {
230 if ((yylval.sval = strdup(yytext)) == NULL) {
248 if (yytext[0] == '\0') {
254 yytext);
256 if (yytext[0] == '\0') {
[all …]
/illumos-gate/usr/src/cmd/oawk/
H A Dawk.lx.l106 if (watoi(yytext+1)==0) {
110 yylval = fieldadr(watoi(yytext+1));
119 yylval = (int)setsymtab(yytext, NULL, watof(yytext),
158 <A>. { yylval = yytext[0]; RETURN(yytext[0]); }
173 <reg>\\. { if (yytext[1]=='n') yylval = '\n';
174 else if (yytext[1] == 't') yylval = '\t';
175 else if (yytext[1] == 'b') yylval = '\b';
176 else if (yytext[1] == 'r') yylval = '\r';
177 else if (yytext[1] == 'f') yylval = '\f';
178 else yylval = yytext[1];
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dlexer.c42 int yytext[YYBUFSIZ+1]; variable
70 c = yytext[yypos++];
94 yytext[yypos++] = c;
96 yytext[yypos] = '\0';
107 yytext[--yypos] = c;
149 yytext[yylast++] = *s;
150 yytext[yylast] = '\0';
160 if ((yytext[offset] == '\'' || yytext[offset] == '"') &&
161 (yytext[offset] == yytext[offset + max - 1])) {
212 bcopy(yytext + yypos, yytext, in yylex()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg_lex.l222 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 Ditm_comp.l76 yylval.num = strtoul(yytext, (char **)NULL, 10);
80 {OCTAL} { yylval.num = strtoul(yytext, (char **)NULL, 8);
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]);
176 s, itm_input_file, yylineno, yytext); in yyerror()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dgram.y192 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 …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_lex.l93 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/zonecfg/
H A Dzonecfg_lex.l357 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/sgs/demo_rdb/common/
H A Dlex.l47 {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 Dxgettext.c46 extern char yytext[];
497 lstrcat(curr_line, yytext); in handle_macro_line()
516 lstrcat(curr_line, yytext); in handle_cplus_comment_line()
541 lstrcat(curr_line, yytext); in handle_open_comment()
566 lstrcat(curr_line, yytext); in handle_close_comment()
593 lstrcat(curr_line, yytext); in handle_gettext()
625 lstrcat(curr_line, yytext); in handle_dgettext()
658 lstrcat(curr_line, yytext); in handle_dcgettext()
680 lstrcat(curr_line, yytext); in handle_textdomain()
698 lstrcat(curr_line, yytext); in handle_open_paren()
[all …]
/illumos-gate/usr/src/lib/libsec/common/
H A Dacl_lex.l228 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 DnameSyntaxLex.l58 [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 Dfsdb_lex.l122 [-0-9a-zA-Z._]+ { yylval.strval = yytext; return WORD; }
124 . { return yytext[0]; }
133 cmd_no, yytext);

12