Improve flex correctness.
authorDavid Given <dg@cowlark.com>
Sun, 22 Mar 2015 23:09:27 +0000 (00:09 +0100)
committerDavid Given <dg@cowlark.com>
Sun, 22 Mar 2015 23:09:27 +0000 (00:09 +0100)
util/opt/build.mk
util/opt/mktab.y

index 75cb925..a4e62ce 100644 (file)
@@ -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
index 08beaec..e2a6c0b 100644 (file)
@@ -294,6 +294,10 @@ main() {
        return nerrors;
 }
 
+int yywrap(void) {
+       return 1;
+}
+
 yyerror(s) char *s; {
 
        fprintf(stderr,"line %d: %s\n",lino,s);