]> git.draconx.ca Git - cdecl99.git/commit
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)
commit0b82602331f058f1dea9fee1ecc37c503576855b
tree52c4fe7337eba019c16550fc62f8b5881030c85a
parent425ed781f7a27bc415e13a1901899e2c7b11e4c8
Work around breakage caused by newer Bison versions.

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.
src/parse.y