diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-19 02:12:42 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-19 02:12:42 +0000 |
commit | b45af7b269eb8ccc7131ab0bdd68e1ce6e7d3fc2 (patch) | |
tree | 2741b3549f5b11c253ebb01486885c0ed2703860 /libobjc/init.c | |
parent | 30d9a28fbe4f4207eb69fcf75d19814599b259ba (diff) | |
download | gcc-b45af7b269eb8ccc7131ab0bdd68e1ce6e7d3fc2.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168044 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/init.c')
-rw-r--r-- | libobjc/init.c | 10 |
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 |