Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2014 08:23:37 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372055 - head/print/libgnomeprint/files
Message-ID:  <201411020823.sA28Nblj068051@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Nov  2 08:23:37 2014
New Revision: 372055
URL: https://svnweb.freebsd.org/changeset/ports/372055
QAT: https://qat.redports.org/buildarchive/r372055/

Log:
  Allow building with bison 3
  
  PR:		ports/194680

Added:
  head/print/libgnomeprint/files/patch-libgnomeprint_grammar.y   (contents, props changed)

Added: head/print/libgnomeprint/files/patch-libgnomeprint_grammar.y
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/libgnomeprint/files/patch-libgnomeprint_grammar.y	Sun Nov  2 08:23:37 2014	(r372055)
@@ -0,0 +1,37 @@
+--- libgnomeprint/grammar.y.orig	2010-02-09 12:32:51 UTC
++++ libgnomeprint/grammar.y
+@@ -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 @@ 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 +115,7 @@ static int yyerror (const char *s);
+ %type <p> pool
+ 
+ %pure_parser
++%parse-param { graph_t *graph }
+ 
+ %start graph
+ %%
+@@ -185,7 +184,7 @@ graph: filter {
+ %%
+ 
+ static int
+-yyerror (const char *s)
++yyerror (graph_t *g, const char *s)
+ {
+ 	return -1;
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411020823.sA28Nblj068051>