Differences From Artifact [d472a9075a]:
- File
src/OFObject.m
— part of check-in
[5e267364ae]
at
2016-07-03 12:01:43
on branch trunk
— runtime: Add objc_enumerationMutation()
This was provided by OFObject before, but should actually be provided by
the runtime, as the compiler can generate code calling into it. (user: js, size: 24795) [annotate] [blame] [check-ins using]
To Artifact [f36c1920e5]:
- File
src/OFObject.m
— part of check-in
[32d092b9ba]
at
2016-07-04 19:36:18
on branch trunk
— Remove check for objc_enumerationMutation
Every supported runtime has it, so there is no point in having it.
(The ObjFW runtime has it and the Apple runtime has it since the one
shipped with OS X 10.5. No earlier Apple runtime is supported anyway.) (user: js, size: 24552) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
138 139 140 141 142 143 144 | void OF_NO_RETURN_FUNC of_method_not_found_stret(void *st, id obj, SEL sel) { of_method_not_found(obj, sel); } | < < < < < < < < | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | void OF_NO_RETURN_FUNC of_method_not_found_stret(void *st, id obj, SEL sel) { of_method_not_found(obj, sel); } id of_alloc_object(Class class, size_t extraSize, size_t extraAlignment, void **extra) { OFObject *instance; size_t instanceSize; |
︙ | ︙ | |||
224 225 226 227 228 229 230 | #if defined(OF_APPLE_RUNTIME) objc_setForwardHandler((void*)&of_forward, (void*)&of_forward_stret); #else objc_setForwardHandler((IMP)&of_forward, (IMP)&of_forward_stret); #endif | < < | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | #if defined(OF_APPLE_RUNTIME) objc_setForwardHandler((void*)&of_forward, (void*)&of_forward_stret); #else objc_setForwardHandler((IMP)&of_forward, (IMP)&of_forward_stret); #endif objc_setEnumerationMutationHandler(enumerationMutationHandler); of_hash_seed = 0; while (of_hash_seed == 0) { #if defined(HAVE_ARC4RANDOM) of_hash_seed = arc4random(); #elif defined(HAVE_RANDOM) struct timeval t; |
︙ | ︙ |