wok-next diff libgnomeprint/stuff/patches/bison3.patch @ rev 20678
Up clisp (2.50)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 15 02:59:03 2018 +0300 (2018-05-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libgnomeprint/stuff/patches/bison3.patch Tue May 15 02:59:03 2018 +0300 1.3 @@ -0,0 +1,37 @@ 1.4 +--- libgnomeprint-2.18.8/libgnomeprint/grammar.y.orig 2010-02-09 13:32:51.000000000 +0100 1.5 ++++ libgnomeprint-2.18.8/libgnomeprint/grammar.y 2013-11-03 21:44:59.859877696 +0100 1.6 +@@ -6,8 +6,6 @@ 1.7 + #include <libgnomeprint/types.h> 1.8 + #include <libgnomeprint/gnome-print-filter.h> 1.9 + 1.10 +-#define YYPARSE_PARAM graph 1.11 +- 1.12 + static void 1.13 + set_value_from_string (GParamSpec *pspec, GValue *v, const gchar *s) 1.14 + { 1.15 +@@ -99,7 +97,7 @@ 1.16 + } 1.17 + 1.18 + static int yylex (void *lvalp); 1.19 +-static int yyerror (const char *s); 1.20 ++static int yyerror (graph_t *g, const char *s); 1.21 + %} 1.22 + 1.23 + %union { 1.24 +@@ -117,6 +115,7 @@ 1.25 + %type <p> pool 1.26 + 1.27 + %pure_parser 1.28 ++%parse-param { graph_t *graph } 1.29 + 1.30 + %start graph 1.31 + %% 1.32 +@@ -185,7 +184,7 @@ 1.33 + %% 1.34 + 1.35 + static int 1.36 +-yyerror (const char *s) 1.37 ++yyerror (graph_t *g, const char *s) 1.38 + { 1.39 + return -1; 1.40 + }