mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
* Source/Additions/GCArray.m: Replace retain/release by
RETAIN/RELEASE macros. * Source/Additions/GCDictionary.m: Idem. * Source/Additions/GSCompatibility.h: Add NSBundle category. * Source/Additions/GSCompatibility.m (GSEncodingName): New. Add -[NSBundle pathForGNUstepResource:ofType:inDirectory:]. * Source/Additions/GSObjCRuntime.m: Include GNUstep.h. (GSObjCMethodNames): Cast method_name to const char *. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16309 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ff1c0e236e
commit
2f182f82b2
6 changed files with 86 additions and 20 deletions
|
@ -61,7 +61,7 @@ typedef struct {
|
|||
- (void) dealloc
|
||||
{
|
||||
NSEndMapTableEnumeration(&enumerator);
|
||||
[dict release];
|
||||
DESTROY(dict);
|
||||
[super dealloc];
|
||||
}
|
||||
- (id) nextObject
|
||||
|
@ -104,7 +104,7 @@ _GCRetainObjects(NSMapTable *table, const void *ptr)
|
|||
{
|
||||
GCInfo *objectStruct = (GCInfo*)ptr;
|
||||
|
||||
[objectStruct->object retain];
|
||||
RETAIN(objectStruct->object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -116,12 +116,12 @@ _GCReleaseObjects(NSMapTable *table, const void *ptr)
|
|||
{
|
||||
if (objectStruct->isGCObject == NO)
|
||||
{
|
||||
[objectStruct->object release];
|
||||
DESTROY(objectStruct->object);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
[objectStruct->object release];
|
||||
DESTROY(objectStruct->object);
|
||||
}
|
||||
NSZoneFree(NSDefaultMallocZone(), objectStruct);
|
||||
}
|
||||
|
@ -316,7 +316,7 @@ static Class gcClass = 0;
|
|||
e = [_GCDictionaryKeyEnumerator alloc];
|
||||
e->dict = [self retain];
|
||||
e->enumerator = NSEnumerateMapTable(_map);
|
||||
return [e autorelease];
|
||||
return AUTORELEASE(e);
|
||||
}
|
||||
|
||||
- (NSEnumerator*) objectEnumerator
|
||||
|
@ -326,7 +326,7 @@ static Class gcClass = 0;
|
|||
e = [_GCDictionaryObjectEnumerator alloc];
|
||||
e->dict = [self retain];
|
||||
e->enumerator = NSEnumerateMapTable(_map);
|
||||
return [e autorelease];
|
||||
return AUTORELEASE(e);
|
||||
}
|
||||
|
||||
- (id) mutableCopyWithZone: (NSZone*)zone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue