blob: a114933c4e0f8ba2c0592f7a996b2b8a2ab27184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
+
%}
|