diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-10 23:28:12 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-10 23:28:12 +0000 |
commit | bc18535a3e3a9a7f98ca4f86ca67e937bde6a883 (patch) | |
tree | 17394fa0ccdc53e9f5134ffd956a7fcc4ca13406 /libobjc/memory.c | |
parent | d3735479a3544423fb067c7c6c848159953ba266 (diff) | |
download | gcc-bc18535a3e3a9a7f98ca4f86ca67e937bde6a883.zip gcc-bc18535a3e3a9a7f98ca4f86ca67e937bde6a883.tar.gz gcc-bc18535a3e3a9a7f98ca4f86ca67e937bde6a883.tar.bz2 |
objc.h: Updated comments.
2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/objc.h: Updated comments.
* objc/objc-api.h: (object_copy): Added one argument; use a
#define to maintain backwards-compatibility. Moved
_objc_object_alloc, _objc_object_copy, _objc_object_dispose and
objc_get_uninstalled_dtable into
objc/deprecated/objc_get_uninstalled_dtable.h and
objc/deprecated/objc_object_alloc.h. Include these files.
* objc/deprecated/objc_get_uninstalled_dtable.h: New.
* objc/deprecated/objc_object_alloc.h: New.
* objc/runtime.h (set_getName): New.
(sel_getType): New.
(sel_getUid): New.
(sel_registerName): New.
(sel_registerTypedName): New.
(sel_isEqual): New.
(class_createInstance): New.
(object_copy): New.
(object_dispose): New.
* objects.c: Do not include tconfig.h. Include gc_typed.h if
building the garbage collection version.
(__objc_object_alloc): Removed.
(__objc_object_copy): Removed.
(__objc_object_dispose): Removed.
(class_createInstance): New from code in class_create_instance.
Cast second argument of GC_malloc_explicitly_typed. Use
objc_calloc. Do not call _objc_object_alloc.
(class_create_instance): Call class_createInstance.
(object_copy): Added extraBytes argument. Do not call
_objc_object_copy.
(object_dispose): Do not call _objc_object_dispose.
* memory.c (objc_free): When using garbage collection, mark the
argument as unused.
* selector.c (sel_getName): New.
(sel_get_name): Call sel_getName.
(sel_getType): New.
(sel_get_type): Call sel_getType.
(sel_registerName): New.
(sel_register_name): Call sel_registerName.
(sel_registerTypedName): New.
(sel_register_typed_name): Call sel_registerTypedName.
(sel_getUid): New.
(sel_get_uid): Call sel_getUid.
From-SVN: r165264
Diffstat (limited to 'libobjc/memory.c')
-rw-r--r-- | libobjc/memory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libobjc/memory.c b/libobjc/memory.c index 19a450a..a0d6e13 100644 --- a/libobjc/memory.c +++ b/libobjc/memory.c @@ -30,6 +30,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see so that they work properly with garbage collectors. */ +/* TODO: Turn these into macros or inline functions. */ + #include "objc-private/common.h" #include "objc-private/error.h" @@ -85,7 +87,7 @@ objc_calloc (size_t nelem, size_t size) } void -objc_free (void *mem) +objc_free (void *mem __attribute__ ((__unused__))) { return; } |