From c8f1fe951164b053a73f70f9969f6fc33fa26efe Mon Sep 17 00:00:00 2001 From: dtrg Date: Tue, 18 Jul 2006 17:19:20 +0000 Subject: [PATCH] Worked around unput() not being strictly legal in the tail code section of a yacc input file. --- util/ncgg/scan.l | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/ncgg/scan.l b/util/ncgg/scan.l index 98ac8e50..93552b6b 100644 --- a/util/ncgg/scan.l +++ b/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;