Garbage collection updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4510 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-07-03 19:59:44 +00:00
parent ee8a964960
commit 006286ee6a
22 changed files with 869 additions and 707 deletions

View file

@ -62,7 +62,7 @@
self = [super init];
if (self)
{
set = [(NSGCountedSet*)d retain];
set = RETAIN((NSGCountedSet*)d);
node = set->map.firstNode;
}
return self;
@ -82,7 +82,7 @@
- (void) dealloc
{
[set release];
RELEASE(set);
[super dealloc];
}
@ -170,7 +170,7 @@
if (objs[i] == nil)
{
[self autorelease];
AUTORELEASE(self);
[NSException raise: NSInvalidArgumentException
format: @"Tried to init counted set with nil value"];
}
@ -248,8 +248,8 @@
- (NSEnumerator*) objectEnumerator
{
return [[[NSGCountedSetEnumerator allocWithZone: NSDefaultMallocZone()]
initWithSet: self] autorelease];
return AUTORELEASE([[NSGCountedSetEnumerator allocWithZone:
NSDefaultMallocZone()] initWithSet: self]);
}
- (void) removeObject: (NSObject*)anObject