Improve flex correctness.

This commit is contained in:
David Given 2015-03-23 00:09:27 +01:00
parent 9f23fbbe6a
commit 98ea849d03
2 changed files with 4 additions and 1 deletions

View 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

View 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);