summaryrefslogtreecommitdiff
path: root/contrib/seg/segscan.l
diff options
context:
space:
mode:
authorTom Lane2013-07-29 14:42:37 +0000
committerTom Lane2013-07-29 14:42:37 +0000
commit55cbfa5366b78d93cd1ff8c4c622b552985344f6 (patch)
treed692550c365cd11c8bcf543ea161dcf869c8d3e0 /contrib/seg/segscan.l
parent626092a2e1784479b17810956b4654acf5b5ec11 (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/segscan.l')
-rw-r--r--contrib/seg/segscan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/seg/segscan.l b/contrib/seg/segscan.l
index 95139f4631..a3e685488a 100644
--- a/contrib/seg/segscan.l
+++ b/contrib/seg/segscan.l
@@ -60,7 +60,7 @@ float ({integer}|{real})([eE]{integer})?
%%
void __attribute__((noreturn))
-yyerror(const char *message)
+yyerror(SEG *result, const char *message)
{
if (*yytext == YY_END_OF_BUFFER_CHAR)
{