Commit faaa30fe by Nicola Pero

Tidied up the declaration and usage of nil_method

From-SVN: r57074
parent d90ad6d3
...@@ -76,7 +76,7 @@ static id ...@@ -76,7 +76,7 @@ static id
__objc_block_forward (id, SEL, ...); __objc_block_forward (id, SEL, ...);
static Method_t search_for_method_in_hierarchy (Class class, SEL sel); static Method_t search_for_method_in_hierarchy (Class class, SEL sel);
Method_t search_for_method_in_list (MethodList_t list, SEL op); Method_t search_for_method_in_list (MethodList_t list, SEL op);
id nil_method (id, SEL, ...); id nil_method (id, SEL);
/* Given a selector, return the proper forwarding implementation. */ /* Given a selector, return the proper forwarding implementation. */
__inline__ __inline__
...@@ -197,7 +197,7 @@ objc_msg_lookup (id receiver, SEL op) ...@@ -197,7 +197,7 @@ objc_msg_lookup (id receiver, SEL op)
return result; return result;
} }
else else
return nil_method; return (IMP)nil_method;
} }
IMP IMP
...@@ -206,7 +206,7 @@ objc_msg_lookup_super (Super_t super, SEL sel) ...@@ -206,7 +206,7 @@ objc_msg_lookup_super (Super_t super, SEL sel)
if (super->self) if (super->self)
return get_imp (super->class, sel); return get_imp (super->class, sel);
else else
return nil_method; return (IMP)nil_method;
} }
int method_get_sizeof_arguments (Method *); int method_get_sizeof_arguments (Method *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment