mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
030f54a9cf
commit
d40d219015
72 changed files with 122 additions and 1787 deletions
|
@ -62,11 +62,6 @@
|
|||
#define GSI_MAP_EQUAL(M, X,Y) [(X).obj isEqualToString: (Y).obj]
|
||||
#define GSI_MAP_NOCLEAN 1
|
||||
|
||||
#if GS_WITH_GC
|
||||
#define GSI_MAP_NODES(M, X) \
|
||||
(GSIMapNode)NSAllocateCollectable(X * sizeof(GSIMapNode_t), 0)
|
||||
#endif
|
||||
|
||||
#include "GNUstepBase/GSIMap.h"
|
||||
|
||||
/*
|
||||
|
@ -555,11 +550,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
|
|||
char *b;
|
||||
|
||||
size = (*info->deiImp)(info->data, deiSel, info->cursor);
|
||||
#if GS_WITH_GC
|
||||
b = NSAllocateCollectable(size, 0);
|
||||
#else
|
||||
b = NSZoneMalloc(NSDefaultMallocZone(), size);
|
||||
#endif
|
||||
(*info->debImp)(info->data, debSel, b, size, info->cursor);
|
||||
s = [[StringClass alloc] initWithBytesNoCopy: b
|
||||
length: size - 1
|
||||
|
@ -591,11 +582,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
|
|||
unichar *b;
|
||||
|
||||
size = (*info->deiImp)(info->data, deiSel, info->cursor);
|
||||
#if GS_WITH_GC
|
||||
b = NSAllocateCollectable(size*sizeof(unichar), 0);
|
||||
#else
|
||||
b = NSZoneMalloc(NSDefaultMallocZone(), size*sizeof(unichar));
|
||||
#endif
|
||||
(*info->debImp)(info->data, debSel, b, size*sizeof(unichar),
|
||||
info->cursor);
|
||||
s = [[StringClass alloc] initWithBytesNoCopy: b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue