mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Changes by wacko@power1.snu.ac.kr (Yoo C. Chung). See ChangeLog Jan 20
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2202 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
af908b993e
commit
c07f920c70
7 changed files with 103 additions and 42 deletions
|
@ -32,6 +32,7 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <gnustep/base/o_map.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSZone.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
|
@ -61,10 +62,8 @@ static BOOL double_release_check_enabled = NO;
|
|||
BOOL
|
||||
NSShouldRetainWithZone (NSObject *anObject, NSZone *requestedZone)
|
||||
{
|
||||
if (!requestedZone || [anObject zone] == requestedZone)
|
||||
return YES;
|
||||
else
|
||||
return NO;
|
||||
return (!requestedZone || requestedZone == NSDefaultMallocZone()
|
||||
|| [anObject zone] == requestedZone);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue