Fix contrib/cube and contrib/seg to build with bison 3.0.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: aa4982169d42660a848e4d25f52bdabcf3f12860
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-07-29T14:42:47Z
Releases: 9.1.10
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.

Files

PathChange+/−
contrib/cube/cube.c modified +4 −4
contrib/cube/cubeparse.y modified +9 −9
contrib/cube/cubescan.l modified +1 −1
contrib/seg/seg.c modified +3 −3
contrib/seg/segparse.y modified +35 −34
contrib/seg/segscan.l modified +1 −1