From 9ca41cf4b6664fba572a6283fe0f6fa753082afc 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 98ac8e507..93552b6bd 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;