aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-10-15 18:24:27 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-10-15 18:24:27 +0000
commitae422ccd65c72f713ffb33319a8bc5436d8bc858 (patch)
tree6404e56954993f5feee47c733780ccc60be5b419 /libobjc/objc
parente2e1d4d8c891c1e4b17681436afe98722862d241 (diff)
downloadgcc-ae422ccd65c72f713ffb33319a8bc5436d8bc858.zip
gcc-ae422ccd65c72f713ffb33319a8bc5436d8bc858.tar.gz
gcc-ae422ccd65c72f713ffb33319a8bc5436d8bc858.tar.bz2
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * Protocol.m: Include objc/runtime.h and objc-private/module-abi-8.h instead of objc/objc-api.h. Do not repeat Protocol's instance variables. (struct objc_method_description_list): Do not define here. ([-conformsTo:]): Reimplemented on top of protocol_conformsTo(). ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare selectors directly instead of getting names and then using strcmp. ([descriptionForClassMethod:]): Same change. ([-isEqual:]): Reimplemented on top of protocol_isEqual(). * protocols.c (protocol_getMethodDescription): Use sel_isEqual() to compare selectors directly instead of getting names and then using strcmp. * objc/Protocol.h: Updated comments. From-SVN: r165517
Diffstat (limited to 'libobjc/objc')
-rw-r--r--libobjc/objc/Protocol.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/libobjc/objc/Protocol.h b/libobjc/objc/Protocol.h
index 1f60405..ad4bbd3 100644
--- a/libobjc/objc/Protocol.h
+++ b/libobjc/objc/Protocol.h
@@ -35,21 +35,24 @@ extern "C" {
@interface Protocol : Object
{
@private
- char *protocol_name;
- struct objc_protocol_list *protocol_list;
- struct objc_method_description_list *instance_methods, *class_methods;
+ char *protocol_name;
+ struct objc_protocol_list *protocol_list;
+ struct objc_method_description_list *instance_methods, *class_methods;
}
-/* Obtaining attributes intrinsic to the protocol */
+/* The following methods have been replaced by
+ protocol_getName()
+ protocol_conformsToProtocol()
+ protocol_getMethodDescription()
+*/
+/* Obtaining attributes intrinsic to the protocol */
- (const char *)name;
/* Testing protocol conformance */
-
- (BOOL) conformsTo: (Protocol *)aProtocolObject;
/* Looking up information specific to a protocol */
-
- (struct objc_method_description *) descriptionForInstanceMethod:(SEL)aSel;
- (struct objc_method_description *) descriptionForClassMethod:(SEL)aSel;