diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-25 04:52:21 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-03-25 04:52:21 +0000 |
commit | 03df01d81c2db0c7234833fce06fcdd7f0aae8e0 (patch) | |
tree | 5535f3040ff277459878342f556c6ccb9cf558e0 /externals/grill/flext/source/flsupport.cpp | |
parent | 848cad880af05c8c1153c21503d434eaaf8eab95 (diff) |
optimized AtomList functions
minor fixes for Max
fixes for OSX
small update of linkage styles etc.
updated the docs
new: FLEXT_WARN, FLEXT_ERROR macros
svn path=/trunk/; revision=2642
Diffstat (limited to 'externals/grill/flext/source/flsupport.cpp')
-rw-r--r-- | externals/grill/flext/source/flsupport.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp index 004e8627..53821157 100644 --- a/externals/grill/flext/source/flsupport.cpp +++ b/externals/grill/flext/source/flsupport.cpp @@ -321,7 +321,7 @@ void TableAnyMap::clear() int TableAnyMap::size() const { int sz = n; - if(sz >= max) { + if(sz >= tsize) { if(left) sz += left->size(); if(right) sz += right->size(); } @@ -332,14 +332,14 @@ void TableAnyMap::_set(size_t k,void *t) { FLEXT_ASSERT(n); - if(n < max) { + if(n < tsize) { // fall through } else if(k < data[0].key) { _toleft(k,t); return; } - else if(k > data[max-1].key) { + else if(k > data[tsize-1].key) { _toright(k,t); return; } @@ -379,8 +379,8 @@ void TableAnyMap::_set(size_t k,void *t) else { // insert new slot by shifting the higher ones FLEXT_ASSERT(k < dk); - if(n == max) - _toright(data[max-1]); + if(n == tsize) + _toright(data[tsize-1]); else ++n; @@ -393,7 +393,7 @@ void TableAnyMap::_set(size_t k,void *t) void *TableAnyMap::_find(size_t k) { FLEXT_ASSERT(n); - if(n < max) { + if(n < tsize) { // fall through } else if(k < data[0].key) |