Skip to content

Commit 9ca41cf

Browse files
author
dtrg
committed
Worked around unput() not being strictly legal in the tail code section of a yacc input file.
1 parent cd09c29 commit 9ca41cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

util/ncgg/scan.l

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ yywrap() {
9494
return(1);
9595
}
9696

97+
/* unput isn't technically legal in this section, so we need the
98+
* following definition to make it work. */
99+
100+
#define yytext_ptr yytext
101+
97102
skipupto(tok,str) char *str; {
98103
register i;
99104

0 commit comments

Comments
 (0)