<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">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
@@ -6,8 +6,6 @@
 #include &lt;libgnomeprint/types.h&gt;
 #include &lt;libgnomeprint/gnome-print-filter.h&gt;
 
-#define YYPARSE_PARAM graph
-
 static void
 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);
 %}
 
 %union {
@@ -116,7 +114,8 @@ static int yyerror (const char *s);
 %type &lt;f&gt; filter
 %type &lt;p&gt; pool
 
-%pure_parser
+%define api.pure
+%parse-param {void *graph}
 
 %start graph
 %%
@@ -185,7 +184,7 @@ graph: filter {
 %%
 
 static int
-yyerror (const char *s)
+yyerror (void *graph, const char *s)
 {
 	return -1;
 }
</pre></body></html>