From cfef6286fa1beaf2072dfb3240e40539250dc527 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 5 Aug 2014 07:01:08 -0700 Subject: * parser.y: Back port from Berkeley Yacc to GNU Bison. We need a prototype of yylex that is in scope of the grammar, but YYSTYPE is not defined there. * parser.l: Bison 3 declares yyparse in y.tab.h, so we have to reorder some #includes. --- parser.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser.l') diff --git a/parser.l b/parser.l index 550e1db9..315b5ab8 100644 --- a/parser.l +++ b/parser.l @@ -41,7 +41,6 @@ #include #endif #include "lib.h" -#include "y.tab.h" #include "gc.h" #include "stream.h" #include "utf8.h" @@ -49,6 +48,7 @@ #include "unwind.h" #include "hash.h" #include "parser.h" +#include "y.tab.h" #define YY_INPUT(buf, result, max_size) \ do { \ -- cgit v1.2.3