summaryrefslogtreecommitdiff
path: root/cad/covered/patches/patch-ab
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2005-03-01 00:13:44 +0000
committerdmcmahill <dmcmahill>2005-03-01 00:13:44 +0000
commite25c1478f44cbc27bc08bff93a1c31f987cf3a1a (patch)
tree2f7979a1967327645e57cde45fc2682168fde44c /cad/covered/patches/patch-ab
parent0cc3708d6ee4a6c31b221194f468ceebf764c72b (diff)
downloadpkgsrc-e25c1478f44cbc27bc08bff93a1c31f987cf3a1a.tar.gz
fix fallout from bison-2.0 update
Diffstat (limited to 'cad/covered/patches/patch-ab')
-rw-r--r--cad/covered/patches/patch-ab35
1 files changed, 35 insertions, 0 deletions
diff --git a/cad/covered/patches/patch-ab b/cad/covered/patches/patch-ab
new file mode 100644
index 00000000000..1ae80b15693
--- /dev/null
+++ b/cad/covered/patches/patch-ab
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.1 2005/03/01 00:13:44 dmcmahill Exp $
+
+--- src/parser.y.orig 2004-03-16 05:45:43.000000000 +0000
++++ src/parser.y 2005-02-28 21:12:13.000000000 +0000
+@@ -62,10 +62,24 @@
+ 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;
++
++# define YYLLOC_DEFAULT(Current, Rhs, N) \
++ do \
++ if (N) \
++ { \
++ (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \
++ (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \
++ (Current).last_line = YYRHSLOC(Rhs, N).last_line; \
++ (Current).last_column = YYRHSLOC(Rhs, N).last_column; \
++ (Current).text = YYRHSLOC(Rhs, 1).text; \
++ } \
++ else \
++ { \
++ (Current).first_line = (Current).last_line = \
++ YYRHSLOC(Rhs, 0).last_line; \
++ (Current).first_column = (Current).last_column = \
++ YYRHSLOC(Rhs, 0).last_column; \
++ (Current).text = YYRHSLOC(Rhs, 0).text; \
++ } \
++ while (0)
+
+ %}