summaryrefslogtreecommitdiff
path: root/japanese/iv/files/patch-ck
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-01-11 15:52:35 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-01-11 15:52:35 +0000
commitd0094e951a8f7bd1f793e0cd66cc6ed91b034a58 (patch)
treedb5ef3978ff9d2fc60f3bf46216c152189bffdb9 /japanese/iv/files/patch-ck
parentAdd explanation of `locale warning message' to DESCR and MESSAGE. (diff)
Fix build error under 4-current and new egcs/C++ compiler.
PR: ports/16024 Submitted by: MIHIRA Yoshiro <sanpei@sanpei.org>
Diffstat (limited to 'japanese/iv/files/patch-ck')
-rw-r--r--japanese/iv/files/patch-ck31
1 files changed, 31 insertions, 0 deletions
diff --git a/japanese/iv/files/patch-ck b/japanese/iv/files/patch-ck
new file mode 100644
index 000000000000..5137635c8603
--- /dev/null
+++ b/japanese/iv/files/patch-ck
@@ -0,0 +1,31 @@
+diff -Ncr src/bin/idraw/idarrowhead.c src/bin/idraw/idarrowhead.c
+*** src/bin/idraw/idarrowhead.c Thu Dec 12 08:49:18 1991
+--- src/bin/idraw/idarrowhead.c Sat Feb 6 19:05:49 1999
+***************
+*** 51,56 ****
+--- 51,75 ----
+
+ Graphic* Arrowhead::Copy () { return new Arrowhead(_x, _y, this); }
+ Graphic& Arrowhead::operator = (Graphic& g) { return Graphic::operator=(g); }
++ Arrowhead& Arrowhead::operator = (Arrowhead& a) {
++ Graphic::operator=(a);
++
++ _count = 0;
++ if (_y)
++ delete[] _y;
++ if (_x)
++ delete[] _x;
++ _x = _y = nil;
++ if (! a._count)
++ return *this;
++
++ _count = a._count;
++ _x = new Coord[_count];
++ _y = new Coord[_count];
++ ::memcpy(_x, a._x, sizeof(Coord) * _count);
++ ::memcpy(_y, a._y, sizeof(Coord) * _count);
++ return *this;
++ }
+
+ Coord Arrowhead::CorrectedHeight (float t) {
+ float w = _x[BOTRIGHT] - _x[BOTCTR];