mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
minor osx compatibility tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8574a1d8de
commit
fe3f6c7d60
2 changed files with 22 additions and 2 deletions
|
@ -225,7 +225,14 @@ relinquishRetainedMemory(const void *item,
|
|||
}
|
||||
else if (options & NSPointerFunctionsObjectPointerPersonality)
|
||||
{
|
||||
_x.acquireFunction = acquireRetainedObject;
|
||||
if (options & NSPointerFunctionsZeroingWeakMemory)
|
||||
{
|
||||
_x.acquireFunction = acquireExistingMemory;
|
||||
}
|
||||
else
|
||||
{
|
||||
_x.acquireFunction = acquireRetainedObject;
|
||||
}
|
||||
_x.descriptionFunction = describeObject;
|
||||
_x.hashFunction = hashShifted;
|
||||
_x.isEqualFunction = equalDirect;
|
||||
|
@ -253,12 +260,20 @@ relinquishRetainedMemory(const void *item,
|
|||
}
|
||||
else /* objects */
|
||||
{
|
||||
_x.acquireFunction = acquireRetainedObject;
|
||||
if (options & NSPointerFunctionsZeroingWeakMemory)
|
||||
{
|
||||
_x.acquireFunction = acquireExistingMemory;
|
||||
}
|
||||
else
|
||||
{
|
||||
_x.acquireFunction = acquireRetainedObject;
|
||||
}
|
||||
_x.descriptionFunction = describeObject;
|
||||
_x.hashFunction = hashObject;
|
||||
_x.isEqualFunction = equalObject;
|
||||
}
|
||||
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue