|
|
|
@ -350,32 +350,12 @@ __objc_send_initialize (Class class)
|
|
|
|
__objc_send_initialize (class->super_class);
|
|
|
|
__objc_send_initialize (class->super_class);
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SEL op = sel_register_name ("initialize");
|
|
|
|
SEL op = sel_register_name ("initialize");
|
|
|
|
IMP imp = 0;
|
|
|
|
Method_t method;
|
|
|
|
MethodList_t method_list = class->class_pointer->methods;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (method_list) {
|
|
|
|
method = class_get_class_method(class->class_pointer, op);
|
|
|
|
int i;
|
|
|
|
if (method)
|
|
|
|
Method_t method;
|
|
|
|
(*method->method_imp) ((id)class, op);
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < method_list->method_count; i++) {
|
|
|
|
|
|
|
|
method = &(method_list->method_list[i]);
|
|
|
|
|
|
|
|
if (method->method_name
|
|
|
|
|
|
|
|
&& method->method_name->sel_id == op->sel_id) {
|
|
|
|
|
|
|
|
imp = method->method_imp;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (imp)
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
method_list = method_list->method_next;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (imp)
|
|
|
|
|
|
|
|
(*imp) ((id) class, op);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|