Differences From Artifact [640206d718]:
- File
src/runtime/class.m
— part of check-in
[2347371351]
at
2013-02-17 10:14:04
on branch trunk
— Remove -Wno-deprecated-objc-isa-usage.
Inside object_{get,set}Class, a cast is used to get rid of the warning
now and all other direct isa references were removed. (user: js, size: 12439) [annotate] [blame] [check-ins using]
To Artifact [d8be8e78d1]:
- File
src/runtime/class.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 12447) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
95 96 97 98 99 100 101 | for (ml = cls->isa->methodlist; ml != NULL; ml = ml->next) for (i = 0; i < ml->count; i++) if (sel_isEqual((SEL)&ml->methods[i].sel, selector)) ((void(*)(id, SEL))ml->methods[i].imp)(cls, selector); } | | | | | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | for (ml = cls->isa->methodlist; ml != NULL; ml = ml->next) for (i = 0; i < ml->count; i++) if (sel_isEqual((SEL)&ml->methods[i].sel, selector)) ((void(*)(id, SEL))ml->methods[i].imp)(cls, selector); } static bool has_load(Class cls) { struct objc_method_list *ml; SEL selector; unsigned int i; selector = sel_registerName("load"); for (ml = cls->isa->methodlist; ml != NULL; ml = ml->next) for (i = 0; i < ml->count; i++) if (sel_isEqual((SEL)&ml->methods[i].sel, selector)) return true; return false; } static void call_load(Class cls) { if (cls->info & OBJC_CLASS_INFO_LOADED) return; |
︙ | ︙ | |||
402 403 404 405 406 407 408 | Class objc_get_class(const char *name) { return objc_getRequiredClass(name); } | < > < > | | | 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 | Class objc_get_class(const char *name) { return objc_getRequiredClass(name); } bool class_isMetaClass(Class cls) { return (cls->info & OBJC_CLASS_INFO_METACLASS); } const char* class_getName(Class cls) { return cls->name; } Class class_getSuperclass(Class cls) { return cls->superclass; } bool class_isKindOfClass(Class cls1, Class cls2) { Class iter; for (iter = cls1; iter != Nil; iter = iter->superclass) if (iter == cls2) return true; return false; } unsigned long class_getInstanceSize(Class cls) { return cls->instance_size; } |
︙ | ︙ |