aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-11-30 11:20:35 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-11-30 11:20:35 +0000
commita32054e27e48a43f510d8492e6b3576631d7f78b (patch)
tree4f2575b21e1e56fb382ab5d276467a708cec2a64 /x11
parentfcc2e35e3d253759b70e167ec3381bdff8af376d (diff)
Notes
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);