aboutsummaryrefslogtreecommitdiff
path: root/libobjc/Object.m
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-10-09 22:22:23 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-10-09 22:22:23 +0000
commitcf3822f181e345f952f1497d24a854ffd50cdb9e (patch)
tree4c22a690a34cb9deabdd429ff045afebaf9343b9 /libobjc/Object.m
parent3a42502df4cb1fd3b8090658920bfe2635b39613 (diff)
downloadgcc-cf3822f181e345f952f1497d24a854ffd50cdb9e.zip
gcc-cf3822f181e345f952f1497d24a854ffd50cdb9e.tar.gz
gcc-cf3822f181e345f952f1497d24a854ffd50cdb9e.tar.bz2
In libobjc/: 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/: 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com> * objc-foreach.c: Include objc-private/common.h. * objc/deprecated/METHOD_NULL.h: New file. * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of defining METHOD_NULL here. * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h. * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of METHOD_NULL. ([-respondsTo:]): Same change. * objc/objc-api.h (method_get_imp): Converted it into a normal function so that we can hide the internals of struct objc_method. * sendmsg.c (method_get_imp): Implemented. From-SVN: r165241
Diffstat (limited to 'libobjc/Object.m')
-rw-r--r--libobjc/Object.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/libobjc/Object.m b/libobjc/Object.m
index 3a5bcb3..441c471 100644
--- a/libobjc/Object.m
+++ b/libobjc/Object.m
@@ -172,14 +172,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+ (BOOL)instancesRespondTo:(SEL)aSel
{
- return class_get_instance_method(self, aSel)!=METHOD_NULL;
+ return class_get_instance_method(self, aSel) != (Method_t)0;
}
- (BOOL)respondsTo:(SEL)aSel
{
return ((object_is_instance(self)
?class_get_instance_method(self->isa, aSel)
- :class_get_class_method(self->isa, aSel))!=METHOD_NULL);
+ :class_get_class_method(self->isa, aSel)) != (Method_t)0);
}
+ (IMP)instanceMethodFor:(SEL)aSel