mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
More moves towards OSX 10.5 GC compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28054 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3a0afe2e58
commit
5cab993ed1
25 changed files with 553 additions and 282 deletions
|
@ -147,16 +147,18 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
|
|||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
NSZone *z = [self zone];
|
||||
NSZone *z;
|
||||
|
||||
mode = [theMode copy];
|
||||
extra = e;
|
||||
#if GS_WITH_GC
|
||||
z = (NSZone*)1;
|
||||
performers = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
|
||||
timers = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
|
||||
watchers = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
|
||||
_trigger = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
|
||||
#else
|
||||
z = [self zone];
|
||||
performers = NSZoneMalloc(z, sizeof(GSIArray_t));
|
||||
timers = NSZoneMalloc(z, sizeof(GSIArray_t));
|
||||
watchers = NSZoneMalloc(z, sizeof(GSIArray_t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue