79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
dtable = objc_sparsearray_copy(cls->superclass->dtable);
else
dtable = objc_sparsearray_new();
for (ml = cls->methodlist; ml != NULL; ml = ml->next)
for (i = 0; i < ml->count; i++)
objc_sparsearray_set(dtable,
ml->methods[i].sel.uid, ml->methods[i].imp);
if ((cats = objc_categories_for_class(cls)) != NULL) {
for (i = 0; cats[i] != NULL; i++) {
unsigned int j;
ml = (cls->info & OBJC_CLASS_INFO_CLASS ?
cats[i]->instance_methods : cats[i]->class_methods);
|
>
|
|
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
dtable = objc_sparsearray_copy(cls->superclass->dtable);
else
dtable = objc_sparsearray_new();
for (ml = cls->methodlist; ml != NULL; ml = ml->next)
for (i = 0; i < ml->count; i++)
objc_sparsearray_set(dtable,
(uint32_t)ml->methods[i].sel.uid,
ml->methods[i].imp);
if ((cats = objc_categories_for_class(cls)) != NULL) {
for (i = 0; cats[i] != NULL; i++) {
unsigned int j;
ml = (cls->info & OBJC_CLASS_INFO_CLASS ?
cats[i]->instance_methods : cats[i]->class_methods);
|