wok-next view libgnomeprint/stuff/patches/bison3.patch @ rev 21332

updated libvirt (4.3.0 -> 5.10.0)
author Hans-G?nter Theisgen
date Thu Dec 12 17:26:25 2019 +0100 (2019-12-12)
parents
children
line source
1 --- libgnomeprint-2.18.8/libgnomeprint/grammar.y.orig 2010-02-09 13:32:51.000000000 +0100
2 +++ libgnomeprint-2.18.8/libgnomeprint/grammar.y 2013-11-03 21:44:59.859877696 +0100
3 @@ -6,8 +6,6 @@
4 #include <libgnomeprint/types.h>
5 #include <libgnomeprint/gnome-print-filter.h>
7 -#define YYPARSE_PARAM graph
8 -
9 static void
10 set_value_from_string (GParamSpec *pspec, GValue *v, const gchar *s)
11 {
12 @@ -99,7 +97,7 @@
13 }
15 static int yylex (void *lvalp);
16 -static int yyerror (const char *s);
17 +static int yyerror (graph_t *g, const char *s);
18 %}
20 %union {
21 @@ -117,6 +115,7 @@
22 %type <p> pool
24 %pure_parser
25 +%parse-param { graph_t *graph }
27 %start graph
28 %%
29 @@ -185,7 +184,7 @@
30 %%
32 static int
33 -yyerror (const char *s)
34 +yyerror (graph_t *g, const char *s)
35 {
36 return -1;
37 }