diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-15 10:35:00 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-15 10:35:00 +0000 |
commit | f7185d479171342a33ffc2bc76226e86d400a785 (patch) | |
tree | 25c0b3362de3f254c6fe9987ea63d4a668631f87 /libobjc/objc-private/runtime.h | |
parent | fbbf834e27301ed73f079d0311a2f6d53d78d908 (diff) | |
download | gcc-f7185d479171342a33ffc2bc76226e86d400a785.zip gcc-f7185d479171342a33ffc2bc76226e86d400a785.tar.gz gcc-f7185d479171342a33ffc2bc76226e86d400a785.tar.bz2 |
In libobjc/: 2010-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
* init.c (__objc_init_protocol): New function which fixes up a
protocol's class pointer, registers it with the runtime, register
all protocol selectors and registers associated protocols too.
(objc_init_statics): Detect if we are initializing protocols, and
if so, use __objc_init_protocol instead of only fixing up the
class pointer.
(__objc_init_protocls): Use __objc_init_protocol.
* objc-private/module-abi-8.h: Updated comments.
* objc-private/runtime.h
(__objc_register_selectors_from_description_list): New.
* selector.c (__objc_register_selectors_from_description_list):
New. (struct objc_method_description_list): Declare.
* Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name
when accessing the name of a method, which is now correctly a SEL.
([-descriptionForClassMethod:]): Same change.
* protocols.c (protocol_getMethodDescription): Same change.
* objc/runtime.h: Updated comments.
(sel_registerTypedName): Fixed typo in function name.
From-SVN: r165499
Diffstat (limited to 'libobjc/objc-private/runtime.h')
-rw-r--r-- | libobjc/objc-private/runtime.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libobjc/objc-private/runtime.h b/libobjc/objc-private/runtime.h index b7e75ae..6794d18 100644 --- a/libobjc/objc-private/runtime.h +++ b/libobjc/objc-private/runtime.h @@ -60,6 +60,8 @@ extern void __objc_install_premature_dtable(Class); /* (objc-dispatch.c) */ extern void __objc_resolve_class_links(void); /* (objc-class.c) */ extern void __objc_register_selectors_from_class(Class); /* (objc-sel.c) */ extern void __objc_register_selectors_from_list (struct objc_method_list *); /* (selector.c) */ +extern void __objc_register_selectors_from_description_list +(struct objc_method_description_list *method_list); /* (selector.c) */ extern void __objc_update_dispatch_table_for_class (Class);/* (objc-msg.c) */ extern int __objc_init_thread_system(void); /* thread.c */ |