@@ -36,13 +36,13 @@ constructSel = sel_registerName(".cxx_construct"); if (!class_respondsToSelector(cls, constructSel)) return true; - construct = (id(*)(id, SEL)) + construct = (id (*)(id, SEL)) class_getMethodImplementation(cls, constructSel); - last = (id(*)(id, SEL)) + last = (id (*)(id, SEL)) class_getMethodImplementation(super, constructSel); if (construct == last) return true; @@ -63,11 +63,11 @@ return nil; return obj; } -void* +void * objc_destructInstance(id obj) { Class cls; void (*last)(id, SEL) = NULL; @@ -81,11 +81,11 @@ for (cls = object_getClass(obj); cls != Nil; cls = class_getSuperclass(cls)) { void (*destruct)(id, SEL); if (class_respondsToSelector(cls, destructSel)) { - if ((destruct = (void(*)(id, SEL)) + if ((destruct = (void (*)(id, SEL)) class_getMethodImplementation(cls, destructSel)) != last) destruct(obj, destructSel); last = destruct;