Differences From Artifact [0cc7cd7988]:
- File src/runtime/class.m — part of check-in [813c00ccf0] at 2013-01-09 22:24:47 on branch trunk — Update copyright. (user: js, size: 12310) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
558 559 560 561 562 563 564 | objc_global_mutex_unlock(); return (IMP)nil; } Class | | > > | > | > | | 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 | objc_global_mutex_unlock(); return (IMP)nil; } Class object_getClass(id obj_) { struct objc_object *obj = (struct objc_object*)obj_; return obj->isa; } Class object_setClass(id obj_, Class cls) { struct objc_object *obj = (struct objc_object*)obj_; Class old; old = obj->isa; obj->isa = cls; return old; } const char* object_getClassName(id obj) { return object_getClass(obj)->name; } static void free_class(Class rcls) { struct objc_abi_class *cls = (struct objc_abi_class*)rcls; |
︙ | ︙ |