diff options
author | Ovidiu Predescu <ovidiu@aracnet.com> | 1998-09-02 23:48:01 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-09-02 17:48:01 -0600 |
commit | d8bb17c8e33975277dd5231e190bf99451b7025d (patch) | |
tree | 1c3b607110323b831606c2ec27d39a0f292a1a15 /gcc/objc/objc-api.h | |
parent | d636ae0b801758df397e3e1ee790ed041a48b9f9 (diff) | |
download | gcc-d8bb17c8e33975277dd5231e190bf99451b7025d.zip gcc-d8bb17c8e33975277dd5231e190bf99451b7025d.tar.gz gcc-d8bb17c8e33975277dd5231e190bf99451b7025d.tar.bz2 |
Boehm GC support for ObjC from Ovidiu Predescu.
From-SVN: r22199
Diffstat (limited to 'gcc/objc/objc-api.h')
-rw-r--r-- | gcc/objc/objc-api.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/objc/objc-api.h b/gcc/objc/objc-api.h index 9eb000b..fe34daf 100644 --- a/gcc/objc/objc-api.h +++ b/gcc/objc/objc-api.h @@ -59,6 +59,8 @@ struct objc_method_description #define _C_UINT 'I' #define _C_LNG 'l' #define _C_ULNG 'L' +#define _C_LNG_LNG 'q' +#define _C_ULNG_LNG 'Q' #define _C_FLT 'f' #define _C_DBL 'd' #define _C_BFLD 'b' @@ -495,6 +497,17 @@ class_set_version(Class class, long version) class->version = version; } +static inline void * +class_get_gc_object_type (Class class) +{ + return CLS_ISCLASS(class) ? class->gc_object_type : NULL; +} + +/* Mark the instance variable as innaccessible to the garbage collector */ +extern void class_ivar_set_gcinvisible (Class class, + const char* ivarname, + BOOL gcInvisible); + static inline IMP method_get_imp(Method_t method) { |