mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
([NSAutoreleasePool -init]): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer. ([NSAutoreleasePool -addObject:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1718 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a9caed6149
commit
af85fabbe0
1 changed files with 4 additions and 4 deletions
|
@ -116,8 +116,8 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
|
|||
{
|
||||
/* Allocate the array that will be the new head of the list of arrays. */
|
||||
_released = (struct autorelease_array_list*)
|
||||
(*objc_malloc) (sizeof(struct autorelease_array_list) +
|
||||
(BEGINNING_POOL_SIZE * sizeof(id)));
|
||||
objc_malloc (sizeof(struct autorelease_array_list) +
|
||||
(BEGINNING_POOL_SIZE * sizeof(id)));
|
||||
/* Currently no NEXT array in the list, so NEXT == NULL. */
|
||||
_released->next = NULL;
|
||||
_released->size = BEGINNING_POOL_SIZE;
|
||||
|
@ -241,8 +241,8 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
|
|||
unsigned new_size = _released->size * 2;
|
||||
|
||||
new_released = (struct autorelease_array_list*)
|
||||
(*objc_malloc) (sizeof(struct autorelease_array_list) +
|
||||
(new_size * sizeof(id)));
|
||||
objc_malloc (sizeof(struct autorelease_array_list) +
|
||||
(new_size * sizeof(id)));
|
||||
new_released->next = NULL;
|
||||
new_released->size = new_size;
|
||||
new_released->count = 0;
|
||||
|
|
Loading…
Reference in a new issue