Worked around unput() not being strictly legal in the tail code section of a yacc input file.

This commit is contained in:
dtrg 2006-07-18 17:19:20 +00:00
parent cd09c29949
commit 9ca41cf4b6

View file

@ -94,6 +94,11 @@ yywrap() {
return(1); return(1);
} }
/* unput isn't technically legal in this section, so we need the
* following definition to make it work. */
#define yytext_ptr yytext
skipupto(tok,str) char *str; { skipupto(tok,str) char *str; {
register i; register i;