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:55 +0000 (10:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Jul 2013 14:42:55 +0000 (10:42 -0400)
commit21c2d4cd62f13780449db3337a202e749b85993a
tree8164fc328a43817d9fef82e9d1658ff9fc5ee975
parent0766904ada3380ae1b0eddc78c8b2b9356ef3e64
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