diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-09 20:11:02 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-09 20:11:02 +0000 |
commit | 6176c2a993ffb40b937e30bbce1f7cce171c92ec (patch) | |
tree | 0c429c12b12d0a09da825834eb01fa1e1dd730ef /libobjc/objc/objc-api.h | |
parent | 5074d72c59a2d98e1c5162b1144d060d319bd519 (diff) | |
download | gcc-6176c2a993ffb40b937e30bbce1f7cce171c92ec.zip gcc-6176c2a993ffb40b937e30bbce1f7cce171c92ec.tar.gz gcc-6176c2a993ffb40b937e30bbce1f7cce171c92ec.tar.bz2 |
In libobjc/: 2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/objc-api.h (struct objc_super, Super, Super_t,
objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
objc_msg_forward2): Declarations moved to objc/message.h. Include
message.h here.
* objc/message.h: Added such declarations; updated comments.
From-SVN: r165236
Diffstat (limited to 'libobjc/objc/objc-api.h')
-rw-r--r-- | libobjc/objc/objc-api.h | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/libobjc/objc/objc-api.h b/libobjc/objc/objc-api.h index be433cb..ff457f2 100644 --- a/libobjc/objc/objc-api.h +++ b/libobjc/objc/objc-api.h @@ -289,26 +289,12 @@ typedef struct objc_category { conformed to */ } Category, *Category_t; -/* -** Structure used when a message is send to a class's super class. The -** compiler generates one of these structures and passes it to -** objc_msg_super. -*/ -typedef struct objc_super { - id self; /* Id of the object sending - the message. */ -#ifdef __cplusplus - Class super_class; -#else - Class class; /* Object's super class. */ -#endif -} Super, *Super_t; - -objc_EXPORT IMP objc_msg_lookup_super(Super_t super, SEL sel); - -objc_EXPORT retval_t objc_msg_sendv(id, SEL, arglist_t); - - +/* We include message.h for compatibility with the old objc-api.h + which included the declarations currently in message.h. The + Apple/NeXT runtime does not do this and only include message.h in + objc-runtime.h. It does not matter that much since most of the + definitions in message.h are runtime-specific. */ +#include "message.h" /* ** This is a hook which is called by objc_lookup_class and @@ -359,16 +345,6 @@ objc_free(void *mem); #include "deprecated/objc_valloc.h" #include "deprecated/objc_malloc.h" -/* -** Hooks for method forwarding. This makes it easy to substitute a -** library, such as ffcall, that implements closures, thereby avoiding -** gcc's __builtin_apply problems. __objc_msg_forward2's result will -** be preferred over that of __objc_msg_forward if both are set and -** return non-NULL. -*/ -objc_EXPORT IMP (*__objc_msg_forward)(SEL); -objc_EXPORT IMP (*__objc_msg_forward2)(id, SEL); - #include "deprecated/objc_unexpected_exception.h" objc_EXPORT Method_t class_get_class_method(MetaClass _class, SEL aSel); |