mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
Add global Foundation header file.
Fix some missed memory allocation function usage. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2682 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
104b517b3d
commit
2c49c63e47
15 changed files with 134 additions and 24 deletions
|
@ -65,7 +65,7 @@
|
|||
{
|
||||
/* Work around bug in objc_sizeof_type; it doesn't handle void type */
|
||||
return_size = objc_sizeof_type (enc);
|
||||
return_value = (*objc_calloc) (1, return_size);
|
||||
return_value = objc_calloc (1, return_size);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -329,9 +329,9 @@ my_method_get_next_argument (arglist_t argframe,
|
|||
/* allocate the argframe */
|
||||
stack_argsize = types_get_size_of_stack_arguments (type);
|
||||
reg_argsize = types_get_size_of_register_arguments(type);
|
||||
argframe = (arglist_t) (*objc_calloc) (1 ,sizeof(char*) + reg_argsize);
|
||||
argframe = (arglist_t) objc_calloc (1 ,sizeof(char*) + reg_argsize);
|
||||
if (stack_argsize)
|
||||
argframe->arg_ptr = (*objc_calloc) (1, stack_argsize);
|
||||
argframe->arg_ptr = objc_calloc (1, stack_argsize);
|
||||
else
|
||||
argframe->arg_ptr = 0;
|
||||
|
||||
|
@ -461,8 +461,8 @@ my_method_get_next_argument (arglist_t argframe,
|
|||
if (argframe)
|
||||
{
|
||||
if (argframe->arg_ptr)
|
||||
(*objc_free) (argframe->arg_ptr);
|
||||
(*objc_free) (argframe);
|
||||
objc_free (argframe->arg_ptr);
|
||||
objc_free (argframe);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue