Worked around unput() not being strictly legal in the tail code section of a yacc...
authordtrg <none@none>
Tue, 18 Jul 2006 17:19:20 +0000 (17:19 +0000)
committerdtrg <none@none>
Tue, 18 Jul 2006 17:19:20 +0000 (17:19 +0000)
util/ncgg/scan.l

index 98ac8e5..93552b6 100644 (file)
@@ -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;