diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-19 15:13:54 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-19 15:13:54 +0000 |
commit | 0463af0e13a17cd146ce690a35d2daf702fb5a01 (patch) | |
tree | 289ab317f67587dd90b5d4486afe3791a6146b7d /libobjc/protocols.c | |
parent | dd8d3729f37f9751e155be7a70380c2a11163e7d (diff) |
In gcc/testsuite/:
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
* objc.dg/gnu-api-2-objc.m: Fixed test to test objc_lookUpClass,
not objc_lookupClass.
* obj-c++.dg/gnu-api-2-objc.mm: Same change.
In libobjc/:
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
* class.c (objc_lookupClass): Renamed to objc_lookUpClass.
* protocols.c: Updated all calls to objc_lookupClass to call
objc_lookUpClass instead.
* sendmsg.c (objc_lookupClass): Do not declare.
(get_imp): Update call to objc_lookupClass to call
objc_lookUpClass instead.
* objc/runtime.h (objc_lookupClass): Renamed to objc_lookUpClass.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168059 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/protocols.c')
-rw-r--r-- | libobjc/protocols.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libobjc/protocols.c b/libobjc/protocols.c index cc694c4a72e..3ff6fbaa1ca 100644 --- a/libobjc/protocols.c +++ b/libobjc/protocols.c @@ -145,7 +145,7 @@ class_addProtocol (Class class_, Protocol *protocol) /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return NO; objc_mutex_lock (__objc_runtime_mutex); @@ -174,7 +174,7 @@ class_conformsToProtocol (Class class_, Protocol *protocol) /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return NO; /* Acquire the runtime lock because the list of protocols for a @@ -278,7 +278,7 @@ protocol_conformsToProtocol (Protocol *protocol, Protocol *anotherProtocol) if (protocol->class_pointer != anotherProtocol->class_pointer) return NO; - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return NO; if (strcmp (((struct objc_protocol *)protocol)->protocol_name, @@ -317,7 +317,7 @@ protocol_isEqual (Protocol *protocol, Protocol *anotherProtocol) if (protocol->class_pointer != anotherProtocol->class_pointer) return NO; - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return NO; /* Equality between formal protocols is only formal (nothing to do @@ -346,7 +346,7 @@ protocol_getName (Protocol *protocol) { /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return NULL; return ((struct objc_protocol *)protocol)->protocol_name; @@ -368,7 +368,7 @@ struct objc_method_description protocol_getMethodDescription (Protocol *protocol /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return no_result; if (instanceMethod) @@ -413,7 +413,7 @@ struct objc_method_description *protocol_copyMethodDescriptionList (Protocol *pr /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol == NULL || protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol == NULL || protocol->class_pointer != objc_lookUpClass ("Protocol")) { if (numberOfReturnedMethods) *numberOfReturnedMethods = 0; @@ -464,7 +464,7 @@ Property protocol_getProperty (Protocol *protocol, const char *propertyName, /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol->class_pointer != objc_lookUpClass ("Protocol")) return NULL; /* TODO: New ABI. */ @@ -479,7 +479,7 @@ Property *protocol_copyPropertyList (Protocol *protocol, unsigned int *numberOfR /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol == NULL || protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol == NULL || protocol->class_pointer != objc_lookUpClass ("Protocol")) { if (numberOfReturnedProperties) *numberOfReturnedProperties = 0; @@ -506,7 +506,7 @@ Protocol **protocol_copyProtocolList (Protocol *protocol, unsigned int *numberOf /* Check that it is a Protocol object before casting it to (struct objc_protocol *). */ - if (protocol == NULL || protocol->class_pointer != objc_lookupClass ("Protocol")) + if (protocol == NULL || protocol->class_pointer != objc_lookUpClass ("Protocol")) { if (numberOfReturnedProtocols) *numberOfReturnedProtocols = 0; |