+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.
+
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/runtime.h (class_ivar_set_gcinvisible): Declare.
/* 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);
/* 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
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,
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
{
/* 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;
/* 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)
/* 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;
/* 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. */
/* 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;
/* 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;
return NULL;
}
-/* Temporary definition until we include objc/runtime.h. */
-objc_EXPORT Class objc_lookupClass (const char *name);
-
/* Given a class and selector, return the selector's
implementation. */
inline
need to obtain the class from the meta class,
which we do using the fact that both the class
and the meta-class have the same name. */
- Class realClass = objc_lookupClass (class->name);
+ Class realClass = objc_lookUpClass (class->name);
if (realClass)
res = __objc_resolve_class_method (realClass, sel);
}