]> git.draconx.ca Git - cdecl99.git/commitdiff
Work around breakage caused by newer Bison versions.
authorNick Bowler <nbowler@draconx.ca>
Wed, 29 Aug 2012 22:35:55 +0000 (18:35 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 29 Aug 2012 22:35:55 +0000 (18:35 -0400)
Newer versions of GNU Bison automagically add a prototype for yyparse to
the header file, where previous versions did not.  Unfortunately, the
use of yyscan_t in %parse-param causes a build failure now, as yyscan_t
is declared in scan.h.  Moreover, since scan.h includes parse.h, we
cannot simply include scan.h in parse.h to get the type definition.

Work around the problem by declaring yyparse as taking a void *
directly.


No differences found