summaryrefslogtreecommitdiff
path: root/comms/estic/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-05 17:12:35 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-05 17:12:35 +0000
commit7d0b3d06dc8d3e702c072428e1646d89df7722d8 (patch)
treef86ce630628f72aecdf4d1efeac1a875ff7bcc61 /comms/estic/patches
parent1a42e6312e20064c078bcde650c8f7d04eaf9c82 (diff)
downloadpkgsrc-7d0b3d06dc8d3e702c072428e1646d89df7722d8.tar.gz
Fix template referening for GCC 3.4+.
Diffstat (limited to 'comms/estic/patches')
-rw-r--r--comms/estic/patches/patch-am52
1 files changed, 49 insertions, 3 deletions
diff --git a/comms/estic/patches/patch-am b/comms/estic/patches/patch-am
index c1343ce8a76..af4af0593b9 100644
--- a/comms/estic/patches/patch-am
+++ b/comms/estic/patches/patch-am
@@ -1,7 +1,7 @@
-$NetBSD: patch-am,v 1.1.1.1 2001/02/10 18:34:23 tron Exp $
+$NetBSD: patch-am,v 1.2 2006/01/05 17:12:35 joerg Exp $
---- ../spunk/coll.h.orig Wed Dec 18 23:42:14 1996
-+++ ../spunk/coll.h Sat Feb 10 18:38:35 2001
+--- ../spunk/coll.h.orig 1996-12-18 23:42:14.000000000 +0000
++++ ../spunk/coll.h
@@ -33,8 +33,8 @@
@@ -13,3 +13,49 @@ $NetBSD: patch-am,v 1.1.1.1 2001/02/10 18:34:23 tron Exp $
+@@ -479,15 +479,15 @@ int SortedCollection<T, U>::IndexOf (con
+
+ // Duplicates allowed. Do a linear search.
+ // (Hint: Search returns the first of all entrys with the same key)
+- Item2 = (T*) Items [Index];
++ Item2 = (T*) this->Items [Index];
+ do {
+ if (Item2 == Item) {
+ // That's it !
+ return Index;
+ }
+ // Get next
+- Item2 = (T*) Items [++Index];
+- } while (Index < Count && Compare (Key, KeyOf (Item2)) == 0);
++ Item2 = (T*) this->Items [++Index];
++ } while (Index < this->Count && Compare (Key, KeyOf (Item2)) == 0);
+
+ // Item not found
+ return -1;
+@@ -522,7 +522,7 @@ int SortedCollection<T, U>::Search (cons
+ {
+ // do a binary search
+ int First = 0;
+- int Last = Count - 1;
++ int Last = this->Count - 1;
+ int Current;
+ int Result;
+ int S = 0;
+@@ -533,7 +533,7 @@ int SortedCollection<T, U>::Search (cons
+ Current = (Last + First) / 2;
+
+ // Do a compare
+- Result = Compare (KeyOf ((T*) Items [Current]), Key);
++ Result = Compare (KeyOf ((T*) this->Items [Current]), Key);
+ if (Result < 0) {
+ First = Current + 1;
+ } else {
+@@ -577,7 +577,7 @@ T* SortedCollection<T, U>::Find (const U
+ int I;
+ if (Search (Key, I) != 0) {
+ // We found the key, I is the index
+- return At (I);
++ return this->At (I);
+ } else {
+ // We did not find the key
+ return 0;