diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-07-29 10:42:51 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-07-29 10:42:51 -0400 |
| commit | 3587f7825f11da09a65218be68340b3b8eeeff35 (patch) | |
| tree | 5d631cb5cc831920bf8b4d90ef75c262822f2668 /contrib/seg/seg.c | |
| parent | 8e992b01864198af954111ffee9b05635c0ae4c0 (diff) | |
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.
Diffstat (limited to 'contrib/seg/seg.c')
| -rw-r--r-- | contrib/seg/seg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c index 9432566abcb..18215969fad 100644 --- a/contrib/seg/seg.c +++ b/contrib/seg/seg.c @@ -24,8 +24,8 @@ PG_MODULE_MAGIC; -extern int seg_yyparse(); -extern void seg_yyerror(const char *message); +extern int seg_yyparse(SEG *result); +extern void seg_yyerror(SEG *result, const char *message); extern void seg_scanner_init(const char *str); extern void seg_scanner_finish(void); @@ -117,7 +117,7 @@ seg_in(PG_FUNCTION_ARGS) seg_scanner_init(str); if (seg_yyparse(result) != 0) - seg_yyerror("bogus input"); + seg_yyerror(result, "bogus input"); seg_scanner_finish(); |
