mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +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
|
@ -260,11 +260,7 @@ static char *buildURL(parsedURL *base, parsedURL *rel, BOOL standardize)
|
|||
len += strlen(rel->fragment) + 1; // #fragment
|
||||
}
|
||||
|
||||
#if GS_WITH_GC
|
||||
ptr = buf = (char*)NSAllocateCollectable(len, 0);
|
||||
#else
|
||||
ptr = buf = (char*)NSZoneMalloc(NSDefaultMallocZone(), len);
|
||||
#endif
|
||||
|
||||
if (rel->scheme != 0)
|
||||
{
|
||||
|
@ -843,11 +839,7 @@ static NSUInteger urlAlign;
|
|||
BOOL canBeGeneric = YES;
|
||||
|
||||
size += sizeof(parsedURL) + urlAlign + 1;
|
||||
#if GS_WITH_GC
|
||||
buf = _data = (parsedURL*)NSAllocateCollectable(size, 0);
|
||||
#else
|
||||
buf = _data = (parsedURL*)NSZoneMalloc(NSDefaultMallocZone(), size);
|
||||
#endif
|
||||
memset(buf, '\0', size);
|
||||
start = end = ptr = (char*)&buf[1];
|
||||
[_urlString getCString: start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue