Overview
Comment: | runtime: More consistency in the API. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2dec88a9d57cee089ab4388018be5954 |
User & Date: | js on 2013-12-20 00:14:15 |
Other Links: | manifest | tags |
Context
2013-12-20
| ||
00:20 | Fix make recursion for bridge. check-in: 3f3151bd81 user: js tags: trunk | |
00:14 | runtime: More consistency in the API. check-in: 2dec88a9d5 user: js tags: trunk | |
2013-12-19
| ||
22:21 | runtime: Add objc_{get,copy}ClassList(). check-in: 035fa09270 user: js tags: trunk | |
Changes
Modified src/OFObject.m from [704b6761d2] to [9bd5d20560].
︙ | |||
367 368 369 370 371 372 373 | 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 | - + | { return class_getMethodImplementation(self, selector); } + (const char*)typeEncodingForInstanceSelector: (SEL)selector { #if defined(OF_OBJFW_RUNTIME) |
︙ | |||
832 833 834 835 836 837 838 | 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 | - + | objc_autoreleasePoolPop(pool); } #endif - (const char*)typeEncodingForSelector: (SEL)selector { #if defined(OF_OBJFW_RUNTIME) |
︙ |
Modified src/runtime/class.m from [0bf2860357] to [a168991e4e].
︙ | |||
614 615 616 617 618 619 620 | 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 | - + | IMP class_getMethodImplementation(Class cls, SEL sel) { return objc_sparsearray_get(cls->dtable, (uint32_t)sel->uid); } const char* |
︙ | |||
651 652 653 654 655 656 657 | 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 | - - + + | } } } } objc_global_mutex_unlock(); |
︙ |
Modified src/runtime/runtime.h from [eb0edb48c5] to [bd61ad8aad].
︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | + + + + + + | #endif #if __has_attribute(objc_root_class) # define OBJC_ROOT_CLASS __attribute__((objc_root_class)) #else # define OBJC_ROOT_CLASS #endif #define Nil (Class)0 #define nil (id)0 #define YES (BOOL)1 #define NO (BOOL)0 typedef struct objc_class* Class; typedef struct objc_object* id; typedef const struct objc_selector* SEL; typedef signed char BOOL; typedef id (*IMP)(id, SEL, ...); typedef void (*objc_uncaught_exception_handler)(id); struct objc_class { Class isa; Class superclass; const char *name; unsigned long version; unsigned long info; |
︙ | |||
107 108 109 110 111 112 113 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | - + - + + - - - - - - - - + + + + + + + + + - + | struct objc_method_list *class_methods; struct objc_protocol_list *protocols; }; struct objc_ivar { const char *name; const char *type; |
︙ | |||
166 167 168 169 170 171 172 | 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | - - - - - - - + - - - - - + + + + + | struct objc_protocol_list { struct objc_protocol_list *next; long count; OBJC_UNSAFE_UNRETAINED Protocol *list[1]; }; |