Differences From Artifact [6307d1d02a]:
- File src/OFIntrospection.m — part of check-in [0708d6f152] at 2011-07-29 21:52:53 on branch trunk — Fix a leak in OFIntrospection with the Apple runtime. (user: js, size: 4102) [annotate] [blame] [check-ins using]
To Artifact [5d382d3723]:
- File
src/OFIntrospection.m
— part of check-in
[7b5b0c8174]
at
2011-08-01 19:01:21
on branch trunk
— Don't use any other classes for +[inheritMethodsFromClass:].
Using other classes there would make it impossible to use
+[inheritMethodsFromClass:] in the classes being used, which would be
unfortunate as the classes that were used are potential candidates for
collection classes. (user: js, size: 4096) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
144 145 146 147 148 149 150 | MethodList_t methodList; classMethods = [[OFMutableArray alloc] init]; instanceMethods = [[OFMutableArray alloc] init]; for (methodList = class->class_pointer->methods; methodList != NULL; methodList = methodList->method_next) { | | | | 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | MethodList_t methodList; classMethods = [[OFMutableArray alloc] init]; instanceMethods = [[OFMutableArray alloc] init]; for (methodList = class->class_pointer->methods; methodList != NULL; methodList = methodList->method_next) { int i; for (i = 0; i < methodList->method_count; i++) [classMethods addObject: [[[OFMethod alloc] _initWithMethod: &methodList->method_list[i]] autorelease]]; } for (methodList = class->methods; methodList != NULL; methodList = methodList->method_next) { int i; for (i = 0; i < methodList->method_count; i++) [instanceMethods addObject: [[[OFMethod alloc] _initWithMethod: &methodList->method_list[i]] autorelease]]; } #endif |
︙ | ︙ |