summaryrefslogtreecommitdiff
path: root/cad/covered-current/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'cad/covered-current/patches/patch-ac')
-rw-r--r--cad/covered-current/patches/patch-ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/cad/covered-current/patches/patch-ac b/cad/covered-current/patches/patch-ac
new file mode 100644
index 00000000000..a114933c4e0
--- /dev/null
+++ b/cad/covered-current/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2003/02/04 02:42:22 dmcmahill Exp $
+
+--- src/parser.y.orig Fri Dec 13 11:49:50 2002
++++ src/parser.y Mon Feb 3 21:26:01 2003
+@@ -46,4 +46,16 @@
+ int yydebug = 1;
+ */
++
++/* Recent version of bison expect that the user supply a
++ YYLLOC_DEFAULT macro that makes up a yylloc value from existing
++ values. I need to supply an explicit version to account for the
++ text field, that otherwise won't be copied. */
++# define YYLLOC_DEFAULT(Current, Rhs, N) \
++ Current.first_line = Rhs[1].first_line; \
++ Current.first_column = Rhs[1].first_column; \
++ Current.last_line = Rhs[N].last_line; \
++ Current.last_column = Rhs[N].last_column; \
++ Current.text = Rhs[1].text;
++
+ %}
+