polynomial-c    14/04/29 11:47:52

  Added:                libgnomeprint-2.18.8-bison3.patch
  Log:
  Fix compilation with >=sys-devel/bison-3.0 (bug #486408)
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
0x981CA6FC)

Revision  Changes    Path
1.1                  
gnome-base/libgnomeprint/files/libgnomeprint-2.18.8-bison3.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/libgnomeprint/files/libgnomeprint-2.18.8-bison3.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/libgnomeprint/files/libgnomeprint-2.18.8-bison3.patch?rev=1.1&content-type=text/plain

Index: libgnomeprint-2.18.8-bison3.patch
===================================================================
http://git.pld-linux.org/gitweb.cgi?p=packages/libgnomeprint.git;a=blob;f=bison3.patch

--- libgnomeprint-2.18.8/libgnomeprint/grammar.y.orig   2010-02-09 
13:32:51.000000000 +0100
+++ libgnomeprint-2.18.8/libgnomeprint/grammar.y        2013-11-03 
21:44:59.859877696 +0100
@@ -6,8 +6,6 @@
 #include <libgnomeprint/types.h>
 #include <libgnomeprint/gnome-print-filter.h>
 
-#define YYPARSE_PARAM graph
-
 static void
 set_value_from_string (GParamSpec *pspec, GValue *v, const gchar *s)
 {
@@ -99,7 +97,7 @@
 }
 
 static int yylex (void *lvalp);
-static int yyerror (const char *s);
+static int yyerror (graph_t *g, const char *s);
 %}
 
 %union {
@@ -117,6 +115,7 @@
 %type <p> pool
 
 %pure_parser
+%parse-param { graph_t *graph }
 
 %start graph
 %%
@@ -185,7 +184,7 @@
 %%
 
 static int
-yyerror (const char *s)
+yyerror (graph_t *g, const char *s)
 {
        return -1;
 }




Reply via email to