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:37 +0000 (10:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Jul 2013 14:42:37 +0000 (10:42 -0400)
commit55cbfa5366b78d93cd1ff8c4c622b552985344f6
treed692550c365cd11c8bcf543ea161dcf869c8d3e0
parent626092a2e1784479b17810956b4654acf5b5ec11
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