From: dtrg Date: Tue, 18 Jul 2006 17:19:20 +0000 (+0000) Subject: Worked around unput() not being strictly legal in the tail code section of a yacc... X-Git-Tag: release-6-0-pre-1~134 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9ca41cf4b6664fba572a6283fe0f6fa753082afc;p=ack.git Worked around unput() not being strictly legal in the tail code section of a yacc input file. --- 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;