]> git.pld-linux.org Git - packages/libgnomeprint.git/blob - bison3.patch
bb04cdfdd2079ddb5ce98875a48485d569baaf4c
[packages/libgnomeprint.git] / bison3.patch
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>
6  
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  }
14  
15  static int yylex (void *lvalp);
16 -static int yyerror (const char *s);
17 +static int yyerror (graph_t *g, const char *s);
18  %}
19  
20  %union {
21 @@ -117,6 +115,7 @@
22  %type <p> pool
23  
24  %pure_parser
25 +%parse-param { graph_t *graph }
26  
27  %start graph
28  %%
29 @@ -185,7 +184,7 @@
30  %%
31  
32  static int
33 -yyerror (const char *s)
34 +yyerror (graph_t *g, const char *s)
35  {
36         return -1;
37  }
This page took 0.064277 seconds and 4 git commands to generate.