summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-08-03 14:42:47 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-08-03 14:42:47 +0000
commitb58722f3990c2309e47514035821b5d0c35fe164 (patch)
treeb0916443fd9a5ea88aef11f2592a6a049c8cfbce
parentacc6d7b0db213e7ffdfc418e987a5839c1019a9f (diff)
downloadATCD-b58722f3990c2309e47514035821b5d0c35fe164.tar.gz
ChangeLogTag: Tue Aug 3 14:42:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--ChangeLog7
-rw-r--r--ace/Containers_T.cpp34
2 files changed, 23 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index d221dab8c6f..38e13f63f36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+Tue Aug 3 14:42:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Containers_T.cpp:
+ Fixed incorrect trace macro
+
Tue Aug 3 08:22:10 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
- * ace/config-aix-5.x.h:
+ * ace/config-aix-5.x.h:
ace/OS_NS_dirent.inl (readdir_r): Added support for AIX and G++.
Thanks to Raz Ben-Yehuda <raz.b@corigin.com>.
diff --git a/ace/Containers_T.cpp b/ace/Containers_T.cpp
index a95568792e6..226bfd54012 100644
--- a/ace/Containers_T.cpp
+++ b/ace/Containers_T.cpp
@@ -936,7 +936,7 @@ ACE_Fixed_Set<T, ACE_SIZE>::ACE_Fixed_Set (const ACE_Fixed_Set<T, ACE_SIZE> &fs)
: cur_size_ (fs.cur_size_)
{
ACE_TRACE ("ACE_Fixed_Set<T>::ACE_Fixed_Set");
-
+
for (size_t i = 0, j = 0; i < fs.max_size_ && j < this->cur_size_; ++i)
if (fs.search_structure_[i].is_free_ == 0)
this->search_structure_[j++] = fs.search_structure_[i];
@@ -989,11 +989,11 @@ ACE_Fixed_Set<T, ACE_SIZE>::insert (const T &item)
ACE_TRACE ("ACE_Fixed_Set<T, ACE_SIZE>::insert");
ssize_t first_free = -1; // Keep track of first free slot.
size_t i;
-
- for (i = 0;
+
+ for (i = 0;
i < this->max_size_ && first_free == -1;
++i)
-
+
// First, make sure we don't allow duplicates.
if (this->search_structure_[i].is_free_ == 0)
@@ -1003,7 +1003,7 @@ ACE_Fixed_Set<T, ACE_SIZE>::insert (const T &item)
}
else
first_free = i;
-
+
// If we found a free spot let's reuse it.
if (first_free > -1)
@@ -1025,8 +1025,8 @@ ACE_Fixed_Set<T, ACE_SIZE>::remove (const T &item)
{
ACE_TRACE ("ACE_Fixed_Set<T, ACE_SIZE>::remove");
- for (size_t i = 0, j = 0;
- i < this->max_size_ && j < this->cur_size_;
+ for (size_t i = 0, j = 0;
+ i < this->max_size_ && j < this->cur_size_;
++i)
if (this->search_structure_[i].is_free_ == 0)
{
@@ -1041,10 +1041,10 @@ ACE_Fixed_Set<T, ACE_SIZE>::remove (const T &item)
else
++j;
}
-
+
return -1;
}
-
+
//--------------------------------------------------
ACE_ALLOC_HOOK_DEFINE(ACE_Fixed_Set_Iterator_Base)
@@ -1070,7 +1070,7 @@ template <class T, size_t ACE_SIZE> int
ACE_Fixed_Set_Iterator_Base<T, ACE_SIZE>::advance (void)
{
ACE_TRACE ("ACE_Fixed_Set_Iterator_Base<T, ACE_SIZE>::advance");
-
+
if (this->iterated_items_ < this->s_.cur_size_)
{
for (++this->next_;
@@ -1084,7 +1084,7 @@ ACE_Fixed_Set_Iterator_Base<T, ACE_SIZE>::advance (void)
}
else
++this->next_;
-
+
return 0;
}
@@ -1110,7 +1110,7 @@ template <class T, size_t ACE_SIZE> int
ACE_Fixed_Set_Iterator_Base<T, ACE_SIZE>::next_i (T *&item)
{
ACE_TRACE ("ACE_Fixed_Set_Iterator_Base<T, ACE_SIZE>::next_i");
-
+
if (ACE_static_cast(size_t, this->next_) < this->s_.max_size_)
do
{
@@ -1154,8 +1154,8 @@ ACE_Fixed_Set_Iterator<T, ACE_SIZE>::next (T *&item)
template <class T, size_t ACE_SIZE> int
ACE_Fixed_Set_Iterator<T, ACE_SIZE>::remove (T *&item)
{
- ACE_TRACE ("ACE_Fixed_Set_Const_Iterator<T, ACE_SIZE>::remove");
-
+ ACE_TRACE ("ACE_Fixed_Set_Iterator<T, ACE_SIZE>::remove");
+
if (this->s_.search_structure_[this->next_].is_free_ == 0)
{
item = &this->s_.search_structure_[this->next_].item_;
@@ -1163,7 +1163,7 @@ ACE_Fixed_Set_Iterator<T, ACE_SIZE>::remove (T *&item)
--(this->iterated_items_);
return 1;
}
-
+
return 0;
}
@@ -1202,10 +1202,10 @@ template <class T, size_t ACE_SIZE> int
ACE_Fixed_Set_Const_Iterator<T, ACE_SIZE>::next (const T *&item)
{
ACE_TRACE ("ACE_Fixed_Set_Const_Iterator<T, ACE_SIZE>::next");
-
+
return this->next_i (item);
}
-
+
template <class T, size_t ACE_SIZE> const T&
ACE_Fixed_Set_Const_Iterator<T, ACE_SIZE>::operator* (void) const
{