diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-03-01 00:13:44 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-03-01 00:13:44 +0000 |
commit | 0ac37b4a71e8e786f380cba4ce1896bd62478271 (patch) | |
tree | 2f7979a1967327645e57cde45fc2682168fde44c /cad/covered | |
parent | e4191b33fd74ece3cd2f5cb08ebc4c265b546cc9 (diff) | |
download | pkgsrc-0ac37b4a71e8e786f380cba4ce1896bd62478271.tar.gz |
fix fallout from bison-2.0 update
Diffstat (limited to 'cad/covered')
-rw-r--r-- | cad/covered/distinfo | 3 | ||||
-rw-r--r-- | cad/covered/patches/patch-ab | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/cad/covered/distinfo b/cad/covered/distinfo index ba78c7af048..dbe9795f2c6 100644 --- a/cad/covered/distinfo +++ b/cad/covered/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.5 2005/02/23 14:59:23 agc Exp $ +$NetBSD: distinfo,v 1.6 2005/03/01 00:13:44 dmcmahill Exp $ SHA1 (covered-0.3.tar.gz) = 10c9231dd4cb2bf8cc28403d28b654c958b3b24e RMD160 (covered-0.3.tar.gz) = a9a0e82ca790a82934d3e07cf16fb401c09f8f7f Size (covered-0.3.tar.gz) = 758152 bytes SHA1 (patch-aa) = 0ffd830e411c00d5fa1776f14e949362b2d2980f +SHA1 (patch-ab) = 5baa34bb31e8118ec656d022ee548987741e2c52 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) + + %} |