Added remove all items

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4435 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-06-20 08:34:00 +00:00
parent fcfe495603
commit aade319e69

View file

@ -353,16 +353,21 @@ FastArrayClear(FastArray array)
}
static INLINE void
FastArrayEmpty(FastArray array)
FastArrayRemoveAllItems(FastArray array)
{
#ifdef FAST_ARRAY_NO_RELEASE
array->count = 0;
#else
#ifndef FAST_ARRAY_NO_RELEASE
while (array->count--)
{
FAST_ARRAY_RELEASE(array->ptr[array->count]);
}
#endif
array->count = 0;
}
static INLINE void
FastArrayEmpty(FastArray array)
{
FastArrayRemoveAllItems(array);
FastArrayClear(array);
}