1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

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
2012-10-24 09:28:27 +02:00
parent 45b6fc8148
commit e40778727b
2 changed files with 23 additions and 16 deletions

View File

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