(behavior_class_add_methods): In accordance with Objective C runtime

change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1723 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-09-07 20:03:33 +00:00
parent 88946fee14
commit 6c3c3d44ee

View file

@ -180,8 +180,8 @@ behavior_class_add_methods (Class class,
/* xxx This is a little wasteful of memory, since not necessarily
all methods will go in here. */
new_list = (MethodList_t)
(*objc_malloc)
(sizeof(MethodList) + sizeof(struct objc_method[counter+1]));
objc_malloc (sizeof(MethodList) +
sizeof(struct objc_method[counter+1]));
new_list->method_count = 0;
while (counter >= 0)