summaryrefslogtreecommitdiff
path: root/libobjc/init.c
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-12-19 02:12:42 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-12-19 02:12:42 +0000
commit120d5f8ea40c87b7451278186dc60849e5455af9 (patch)
tree2741b3549f5b11c253ebb01486885c0ed2703860 /libobjc/init.c
parentc34fc9884e9fef948e8b99a436d6f6d0eaf84130 (diff)
downloadgcc-120d5f8ea40c87b7451278186dc60849e5455af9.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> * init.c: Updated comments. * objc/objc-api.h: Updated comments. * objc/runtime.h (_objc_load_callback): Declare. From-SVN: r168044
Diffstat (limited to 'libobjc/init.c')
-rw-r--r--libobjc/init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libobjc/init.c b/libobjc/init.c
index 370dea9e0f6..a282d5ef70d 100644
--- a/libobjc/init.c
+++ b/libobjc/init.c
@@ -83,11 +83,7 @@ static void __objc_init_protocol (struct objc_protocol *protocol);
/* Add protocol to class. */
static void __objc_class_add_protocols (Class, struct objc_protocol_list *);
-/* This is a hook which is called by __objc_exec_class every time a
- class or a category is loaded into the runtime. This may e.g. help
- a dynamic loader determine the classes that have been loaded when
- an object file is dynamically linked in. */
-/* TODO: This needs to be declared in a public file with the new API. */
+/* Load callback hook. */
void (*_objc_load_callback) (Class class, struct objc_category *category); /* !T:SAFE */
/* Are all categories/classes resolved? */
@@ -724,6 +720,10 @@ __objc_exec_class (struct objc_module *module)
objc_send_load ();
objc_mutex_unlock (__objc_runtime_mutex);
+
+ /* TODO: Do we need to add a call to __objc_resolve_class_links()
+ here ? gnustep-base does it manually after it loads a module.
+ Shouldn't we do it automatically ? */
}
static void