Bison 3 requires that instances of YYPARSE_PARAM be replaced with
%parse-param. This in turn alters the arguments of the generated
yyerror function, so relevant function prototypes have to be updated.
Index: libgnomeprint/grammar.y
===================================================================
--- libgnomeprint/grammar.y.orig
+++ libgnomeprint/grammar.y
#include <libgnomeprint/types.h>
#include <libgnomeprint/gnome-print-filter.h>
-#define YYPARSE_PARAM graph
set_value_from_string (GParamSpec *pspec, GValue *v, const gchar *s)
@@ -99,7 +97,7 @@ gnome_print_filter_parse_prop (GnomePrin
static int yylex (void *lvalp);
-static int yyerror (const char *s);
+static int yyerror (void *graph, const char *s);
@@ -116,7 +114,8 @@ static int yyerror (const char *s);
+%parse-param {void *graph}
@@ -185,7 +184,7 @@ graph: filter {
+yyerror (void *graph, const char *s)