mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Tidyup for GC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65b8d0067c
commit
eb1c061d9b
30 changed files with 137 additions and 111 deletions
|
@ -432,7 +432,9 @@ static SEL eqSel = @selector(isEqual:);
|
|||
{
|
||||
if ((*imp)(anObject, eqSel, _contents_array[index]) == YES)
|
||||
{
|
||||
#if GS_WITH_GC == 0
|
||||
id obj = _contents_array[index];
|
||||
#endif
|
||||
unsigned pos = index;
|
||||
|
||||
while (++pos < _count)
|
||||
|
@ -474,7 +476,9 @@ static SEL eqSel = @selector(isEqual:);
|
|||
{
|
||||
if (_contents_array[index] == anObject)
|
||||
{
|
||||
#if GS_WITH_GC == 0
|
||||
id obj = _contents_array[index];
|
||||
#endif
|
||||
unsigned pos = index;
|
||||
|
||||
while (++pos < _count)
|
||||
|
@ -502,7 +506,7 @@ static SEL eqSel = @selector(isEqual:);
|
|||
* array in case a retain or release causes an exception.
|
||||
*/
|
||||
obj = _contents_array[index];
|
||||
RETAIN(anObject);
|
||||
IF_NO_GC(RETAIN(anObject));
|
||||
_contents_array[index] = anObject;
|
||||
RELEASE(obj);
|
||||
}
|
||||
|
@ -581,7 +585,7 @@ static SEL eqSel = @selector(isEqual:);
|
|||
{
|
||||
[super init];
|
||||
array = anArray;
|
||||
RETAIN(array);
|
||||
IF_NO_GC(RETAIN(array));
|
||||
pos = 0;
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue