([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:
mccallum 1996-09-07 19:57:33 +00:00
parent a9caed6149
commit af85fabbe0

View file

@ -116,7 +116,7 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
{ {
/* Allocate the array that will be the new head of the list of arrays. */ /* Allocate the array that will be the new head of the list of arrays. */
_released = (struct autorelease_array_list*) _released = (struct autorelease_array_list*)
(*objc_malloc) (sizeof(struct autorelease_array_list) + objc_malloc (sizeof(struct autorelease_array_list) +
(BEGINNING_POOL_SIZE * sizeof(id))); (BEGINNING_POOL_SIZE * sizeof(id)));
/* Currently no NEXT array in the list, so NEXT == NULL. */ /* Currently no NEXT array in the list, so NEXT == NULL. */
_released->next = NULL; _released->next = NULL;
@ -241,7 +241,7 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
unsigned new_size = _released->size * 2; unsigned new_size = _released->size * 2;
new_released = (struct autorelease_array_list*) new_released = (struct autorelease_array_list*)
(*objc_malloc) (sizeof(struct autorelease_array_list) + objc_malloc (sizeof(struct autorelease_array_list) +
(new_size * sizeof(id))); (new_size * sizeof(id)));
new_released->next = NULL; new_released->next = NULL;
new_released->size = new_size; new_released->size = new_size;