Replace yyscan_t with another pointer type that we control.

This prevents the circuluar dependency between parser.gen.h and
lexer.gen.h.  Newer versions of bison add a prototype for yyparse() to
parser.gen.h that include the as-yet-undeclared yyscan_t type.
This commit is contained in:
Damian Gryski committed 2012-10-24 09:28:27 +02:00
1 parent 45b6fc8148
commit e40778727b
2 files changed
+23 -16

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
%{
#include "compile.h"
struct lexer_param;
#include "parser.gen.h" /* Generated by bison. */
#define YY_USER_ACTION \