aboutsummaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch
blob: 29d410a0ab8a00d7d1b4e022e1660b2081f6f288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Index: libgnomeprint-2.18.8/libgnomeprint/grammar.y
===================================================================
--- libgnomeprint-2.18.8.orig/libgnomeprint/grammar.y
+++ libgnomeprint-2.18.8/libgnomeprint/grammar.y
@@ -99,7 +99,7 @@ gnome_print_filter_parse_prop (GnomePrin
 }
 
 static int yylex (void *lvalp);
-static int yyerror (const char *s);
+static int yyerror (graph_t *g, const char *s);
 %}
 
 %union {
@@ -117,6 +117,7 @@ static int yyerror (const char *s);
 %type <p> pool
 
 %pure_parser
+%parse-param { graph_t *graph }
 
 %start graph
 %%
@@ -185,7 +186,7 @@ graph: filter {
 %%
 
 static int
-yyerror (const char *s)
+yyerror (graph_t *g, const char *s)
 {
 	return -1;
 }