diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-09-22 10:41:58 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-09-22 10:41:58 -0400 |
commit | df7fbc8cd830ea212f052c089989afb014e3ffe3 (patch) | |
tree | d2fe8bef2a5fc1bd66f41af51efef03f77c037ef | |
parent | 2dac9ca60bcd3a92da0650c31fddb9caf530a9c9 (diff) | |
download | gcc-df7fbc8cd830ea212f052c089989afb014e3ffe3.zip gcc-df7fbc8cd830ea212f052c089989afb014e3ffe3.tar.gz gcc-df7fbc8cd830ea212f052c089989afb014e3ffe3.tar.bz2 |
Replace use of __objc_xcalloc, __objc_xrealloc, and __objc_xmalloc
with objc_calloc, objc_realloc, and objc_malloc.
From-SVN: r12767
-rw-r--r-- | gcc/objc/selector.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/objc/selector.c b/gcc/objc/selector.c index 26cbba8..8a65293 100644 --- a/gcc/objc/selector.c +++ b/gcc/objc/selector.c @@ -304,14 +304,14 @@ __sel_register_typed_name (const char *name, const char *types, if (orig) j = orig; else - j = __objc_xmalloc (sizeof (struct objc_selector)); + j = objc_malloc (sizeof (struct objc_selector)); j->sel_id = (void*)i; /* Can we use the pointer or must copy types? Don't copy if NULL */ if ((is_const) || (types == 0)) j->sel_types = (const char*)types; else { - j->sel_types = (char *)__objc_xmalloc(strlen(types)+1); + j->sel_types = (char *) objc_malloc(strlen(types)+1); strcpy(j->sel_types, types); } l = (struct objc_list*)sarray_get (__objc_selector_array, i); @@ -323,14 +323,14 @@ __sel_register_typed_name (const char *name, const char *types, if (orig) j = orig; else - j = __objc_xmalloc (sizeof (struct objc_selector)); + j = objc_malloc (sizeof (struct objc_selector)); j->sel_id = (void*)i; /* Can we use the pointer or must copy types? Don't copy if NULL */ if ((is_const) || (types == 0)) j->sel_types = (const char*)types; else { - j->sel_types = (char *)__objc_xmalloc(strlen(types)+1); + j->sel_types = (char *) objc_malloc(strlen(types)+1); strcpy(j->sel_types, types); } l = 0; @@ -347,7 +347,7 @@ __sel_register_typed_name (const char *name, const char *types, if ((is_const) || (name == 0)) new_name = name; else { - new_name = (char *)__objc_xmalloc(strlen(name)+1); + new_name = (char *) objc_malloc(strlen(name)+1); strcpy(new_name, name); } |