aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-02 16:23:37 +0800
committerantoine <antoine@FreeBSD.org>2014-11-02 16:23:37 +0800
commit254fa280328333345f510467cd897222f5ad6ade (patch)
tree1be5f88acb42e12ad62bd1bc2ebe21d66252d261 /print
parent25cfe4f404d57a5c269f5ec321f4842b998057a1 (diff)
downloadfreebsd-ports-gnome-254fa280328333345f510467cd897222f5ad6ade.tar.gz
freebsd-ports-gnome-254fa280328333345f510467cd897222f5ad6ade.tar.zst
freebsd-ports-gnome-254fa280328333345f510467cd897222f5ad6ade.zip
Allow building with bison 3
PR: ports/194680
Diffstat (limited to 'print')
-rw-r--r--print/libgnomeprint/files/patch-libgnomeprint_grammar.y37
1 files changed, 37 insertions, 0 deletions
diff --git a/print/libgnomeprint/files/patch-libgnomeprint_grammar.y b/print/libgnomeprint/files/patch-libgnomeprint_grammar.y
new file mode 100644
index 000000000000..5d24866f7a5f
--- /dev/null
+++ b/print/libgnomeprint/files/patch-libgnomeprint_grammar.y
@@ -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;
+ }