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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix contrib/cube and contrib/seg to build with bison 3.0.
Date: 2013-07-29 14:43:26
Message-ID: E1V3ofW-000239-Nu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3587f7825f11da09a65218be68340b3b8eeeff35

Modified Files
--------------
contrib/cube/cube.c | 8 +++---
contrib/cube/cubeparse.y | 18 ++++++------
contrib/cube/cubescan.l | 2 +-
contrib/seg/seg.c | 6 ++--
contrib/seg/segparse.y | 71 +++++++++++++++++++++++-----------------------
contrib/seg/segscan.l | 2 +-
6 files changed, 54 insertions(+), 53 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Greg Stark 2013-07-29 15:38:34 pgsql: Add SQL Standard WITH ORDINALITY support for UNNEST (and any oth
Previous Message Stephen Frost 2013-07-29 03:13:34 Re: [COMMITTERS] pgsql: Add GET DIAGNOSTICS ... PG_CONTEXT in PL/PgSQL