Browse Source

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

dtrg 18 years ago
parent
commit
9ca41cf4b6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      util/ncgg/scan.l

+ 5 - 0
util/ncgg/scan.l

@@ -94,6 +94,11 @@ yywrap() {
 	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; {
 	register i;