mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
GC changes for MacOS-X compatiblity
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27630 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a5a8ba8eb
commit
c41bdeb638
20 changed files with 537 additions and 294 deletions
|
@ -207,6 +207,9 @@ NSCopyMapTableWithZone(NSMapTable *table, NSZone *zone)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if GS_WITH_GC
|
||||
zone = GSScannedMallocZone();
|
||||
#endif
|
||||
t = (GSIMapTable)NSZoneMalloc(zone, sizeof(GSIMapTable_t));
|
||||
GSIMapInitWithZoneAndCapacity(t, zone, ((GSIMapTable)table)->nodeCount);
|
||||
t->extra.k = ((GSIMapTable)table)->extra.k;
|
||||
|
@ -270,6 +273,9 @@ NSCreateMapTableWithZone(
|
|||
{
|
||||
GSIMapTable table;
|
||||
|
||||
#if GS_WITH_GC
|
||||
zone = GSScannedMallocZone();
|
||||
#endif
|
||||
table = (GSIMapTable)NSZoneMalloc(zone, sizeof(GSIMapTable_t));
|
||||
GSIMapInitWithZoneAndCapacity(table, zone, capacity);
|
||||
table->extra.k = keyCallBacks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue