diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | parser.y | 1 |
2 files changed, 9 insertions, 1 deletions
@@ -203,7 +203,14 @@ y.tab.h: y.tab.c y.tab.c: $(top_srcdir)parser.y $(call ABBREV,YACC) $(V)rm -f y.tab.c - $(V)if $(YACC) -v -d $< ; then chmod a-w y.tab.c ; true ; else rm y.tab.c ; false ; fi + $(V)if $(YACC) -v -d $< ; then \ + chmod a-w y.tab.c ; \ + sed -e '/yyparse/d' < y.tab.h > y.tab.h.tmp && \ + mv y.tab.h.tmp y.tab.h ; \ + else \ + rm y.tab.c ; \ + false ; \ + fi # Suppress useless sccs id array and unused label warning in byacc otuput. # Bison-generated parser also tests for this lint define. @@ -65,6 +65,7 @@ static void misplaced_consing_dot_check(scanner_t *scanner, val term_atom_cons); #if YYBISON union YYSTYPE; int yylex(union YYSTYPE *, yyscan_t scanner); +int yyparse(scanner_t *, parser_t *); #endif #define rl(form, line) rlrec(parser, form, line) |