diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-12-19 14:56:14 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-12-19 14:56:14 +0000 |
commit | fea782052db609f2a1bdf35bccf7ceb74c711494 (patch) | |
tree | 8fa53d86753ef1295b535577c3d3939cb3159d8d | |
parent | 5e3c13f231ac66e59cae8977f1375b74e8b15d60 (diff) | |
download | gcc-fea782052db609f2a1bdf35bccf7ceb74c711494.tar.gz |
In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/runtime.h (class_ivar_set_gcinvisible): Declare.
* sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not
define. Updated comments.
From-SVN: r168058
-rw-r--r-- | libobjc/ChangeLog | 6 | ||||
-rw-r--r-- | libobjc/objc/runtime.h | 9 | ||||
-rw-r--r-- | libobjc/sendmsg.c | 7 |
3 files changed, 17 insertions, 5 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index 1bb60816b79..00eae0b2343 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,5 +1,11 @@ 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> + * objc/runtime.h (class_ivar_set_gcinvisible): Declare. + * sendmsg.c (_CLS_IN_CONSTRUCTION, CLS_IS_IN_CONSTRUCTION): Do not + define. Updated comments. + +2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> + * objc/encoding.h: Updated comments. * objc/runtime.h: Updated comments. (objc_setGetUnknownClassHandler): Mark with objc_EXPORT. diff --git a/libobjc/objc/runtime.h b/libobjc/objc/runtime.h index 5f0274e109a..b323f9925d7 100644 --- a/libobjc/objc/runtime.h +++ b/libobjc/objc/runtime.h @@ -962,6 +962,15 @@ objc_EXPORT void *objc_calloc(size_t nelem, size_t size); objc_EXPORT void objc_free(void *mem); +/** Implementation: the following functions are in gc.c. */ + +/* Mark the instance variable as inaccessible to the garbage + collector. */ +objc_EXPORT void class_ivar_set_gcinvisible (Class _class, + const char* ivarname, + BOOL gcInvisible); + + /** Implementation: the following functions are in encoding.c. */ /* Traditional GNU Objective-C Runtime functions that are currently diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c index e41a190eb37..5f430fd1e48 100644 --- a/libobjc/sendmsg.c +++ b/libobjc/sendmsg.c @@ -44,10 +44,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include <assert.h> /* For assert */ #include <string.h> /* For strlen */ -/* Temporarily while we include objc/objc-api.h instead of objc-private/module-abi-8.h. */ -#define _CLS_IN_CONSTRUCTION 0x10L -#define CLS_IS_IN_CONSTRUCTION(cls) __CLS_ISINFO(cls, _CLS_IN_CONSTRUCTION) - /* This is how we hack STRUCT_VALUE to be 1 or 0. */ #define gen_rtx(args...) 1 #define gen_rtx_MEM(args...) 1 @@ -331,7 +327,8 @@ class_getMethodImplementation (Class class_, SEL selector) return get_imp (class_, selector); } -/* Given a method, return its implementation. */ +/* Given a method, return its implementation. This has been replaced + by method_getImplementation() in the modern API. */ IMP method_get_imp (struct objc_method * method) { |