]> granicus.if.org Git - postgresql/commit
Fix contrib/cube and contrib/seg to build with bison 3.0.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Jul 2013 14:42:47 +0000 (10:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Jul 2013 14:42:47 +0000 (10:42 -0400)
commitaa4982169d42660a848e4d25f52bdabcf3f12860
tree21e018b4fa0cd315bff3fe00de9bf813e1d15a87
parent3ba763bd95b6eb027bc87e73806241b460807091
Fix contrib/cube and contrib/seg to build with bison 3.0.

These modules used the YYPARSE_PARAM macro, which has been deprecated
by the bison folk since 1.875, and which they finally removed in 3.0.
Adjust the code to use the replacement facility, %parse-param, which
is a much better solution anyway since it allows specification of the
type of the extra parser parameter.  We can thus get rid of a lot of
unsightly casting.

Back-patch to all active branches, since somebody might try to build
a back branch with up-to-date tools.
contrib/cube/cube.c
contrib/cube/cubeparse.y
contrib/cube/cubescan.l
contrib/seg/seg.c
contrib/seg/segparse.y
contrib/seg/segscan.l