From: David Given Date: Sun, 22 Mar 2015 23:09:27 +0000 (+0100) Subject: Improve flex correctness. X-Git-Tag: release-6-0-pre-5~14^2~1 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=98ea849d031b68508970a13ebd17823d5532819e;p=ack.git Improve flex correctness. --- diff --git a/util/opt/build.mk b/util/opt/build.mk index 75cb92553..a4e62ced7 100644 --- a/util/opt/build.mk +++ b/util/opt/build.mk @@ -11,7 +11,6 @@ $(call flex, $(OBJDIR)/$D, $D/scan.l) $(call dependson, $(OBJDIR)/$D/y.tab.h) $(call rawfile, $(LIBEM_DATA)) -$(call rawfile, -lfl) $(call cprogram, $(OBJDIR)/$D/mktab) endef diff --git a/util/opt/mktab.y b/util/opt/mktab.y index 08beaeccc..e2a6c0b1a 100644 --- a/util/opt/mktab.y +++ b/util/opt/mktab.y @@ -294,6 +294,10 @@ main() { return nerrors; } +int yywrap(void) { + return 1; +} + yyerror(s) char *s; { fprintf(stderr,"line %d: %s\n",lino,s);