aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-30 19:20:35 +0800
committerantoine <antoine@FreeBSD.org>2014-11-30 19:20:35 +0800
commit6bf158518f61291285f75be6d0b536f2c790901c (patch)
tree4f2575b21e1e56fb382ab5d276467a708cec2a64 /x11
parent45dbab86a091628fddbfe3f717788a5f39f93e75 (diff)
downloadfreebsd-ports-gnome-6bf158518f61291285f75be6d0b536f2c790901c.tar.gz
freebsd-ports-gnome-6bf158518f61291285f75be6d0b536f2c790901c.tar.zst
freebsd-ports-gnome-6bf158518f61291285f75be6d0b536f2c790901c.zip
Allow building with bison 3
PR: ports/194680
Diffstat (limited to 'x11')
-rw-r--r--x11/xstroke/files/patch-rec_parse.y32
1 files changed, 30 insertions, 2 deletions
diff --git a/x11/xstroke/files/patch-rec_parse.y b/x11/xstroke/files/patch-rec_parse.y
index 3e2e427de96a..505937ecdf8c 100644
--- a/x11/xstroke/files/patch-rec_parse.y
+++ b/x11/xstroke/files/patch-rec_parse.y
@@ -1,5 +1,24 @@
---- rec_parse.y.orig 2001-12-10 18:01:17.000000000 +0100
-+++ rec_parse.y 2009-03-03 00:57:09.000000000 +0100
+--- rec_parse.y.orig 2001-12-10 17:01:17 UTC
++++ rec_parse.y
+@@ -32,9 +32,8 @@
+ #include "dmalloc.h"
+ #endif
+
+-static int yyerror(char *err);
++static int yyerror(rec_t *rec, char *err);
+
+-#define YYPARSE_PARAM rec
+ #define YYERROR_VERBOSE
+
+ #ifdef REC_PARSE_DEBUG
+@@ -47,6 +46,7 @@ static feature_list_t FEATURE_ERROR = {
+ %}
+
+ %pure_parser
++%parse-param { rec_t *rec }
+
+ %union {
+ int ival;
@@ -141,7 +141,7 @@ mode_decl : MODE STRING
| MODE STRING
{
@@ -24,3 +43,12 @@
gesture_list : gesture
{
+@@ -342,7 +344,7 @@ option : OPTION STRING STRING
+
+ %%
+
+-static int yyerror(char *err)
++static int yyerror(rec_t *rec, char *err)
+ {
+ char *loc = rec_lex_location_alloc();
+ fprintf(stderr, "%s: %s\n", loc, err);