From 80e4b9e501e4e702f1c32287c1ff57ca84054a7c Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 7 Jun 2011 19:37:35 +0000 Subject: In libobjc/: 2011-06-07 Nicola Pero In libobjc/: 2011-06-07 Nicola Pero Removed the Traditional Objective-C runtime public API. * Makefile.in (OBJC_DEPRECATED_H): Variable removed. (install-headers): Do not create the objc/deprecated directory and do not install the deprecated headers. (OBJC_H): Removed encoding.h and objc-api.h. * Object.m: Removed all methods with the exception of -class and -isEqual:. Updated includes. ([-class]): Use Modern API. * objc/Object.h: Do not include deprecated/Object.h. * objc/deprecated/Object.h: Removed. * linking.m (__objc_linking): Call [Object class] instead of [Object name]. * Protocol.m: Removed all methods with the exception of -isEqual:. Updated includes. * objc/Protocol.h: Do not include deprecated/Protocol.h. * objc/deprecated/Protocol.h: Removed. * objc/deprecated/struct_objc_symtab.h: Removed. * objc/deprecated/struct_objc_module.h: Removed. * objc/deprecated/struct_objc_ivar.h: Removed. * objc/deprecated/struct_objc_ivar_list.h: Removed. * objc/deprecated/struct_objc_method.h: Removed. * objc/deprecated/struct_objc_method_list.h: Removed. * objc/deprecated/struct_objc_protocol_list.h: Removed. * objc/deprecated/struct_objc_category.h: Removed. * objc/deprecated/MetaClass.h: Removed. * objc/deprecated/objc_msg_sendv.h: Removed. * objc/deprecated/README: Removed. * objc/deprecated/struct_objc_class.h: Removed. * objc/deprecated/struct_objc_protocol.h: Removed. * objc/deprecated/struct_objc_selector.h: Removed. * objc/encoding.h: Removed. * objc/message.h (struct objc_super): Removed the definition for the Traditional Objective-C runtime API. * objc/objc.h: Do not include objc/objc-decls.h. deprecated/struct_objc_selector.h, deprecated/MetaClass.h, deprecated/struct_objc_class.h, deprecated/struct_objc_protocol.h and deprecated/objc_msg_sendv.h. Uncommented new definition of Protocol *. * objc/objc-api.h: Removed. * objc/runtime.h: Updated comments. Removed check to detect concurrent usage of Traditional and Modern APIs. * objc-private/module-abi-8.h: Always define struct objc_class and struct objc_protocol. (struct objc_protocol_list): Changed type of 'list' argument from 'Protocol *' to 'struct objc_protocol *'. (class_get_instance_size): Added. * objc-private/protocols.h (__objc_protocols_add_protocol): Take a 'struct objc_protocol *' as argument, not a 'Protocol *'. * objc-private/runtime.h: Updated comments. * objc-private/selector.h (struct objc_selector, sel_eq): Added. * class.c: Include objc-private/selector.h. (objc_get_meta_class): Return a Class instead of a MetaClass. * encoding.c (method_get_next_argument): Removed. (method_get_first_argument): Removed. (method_get_nth_argument): Removed. * gc.c: Include objc/runtime.h instead of objc/encoding.h. Include objc-private/module-abi-8.h and ctype.h. * protocols.c (__objc_protocols_add_protocol): Take a 'struct objc_protocl *' as argument, not a 'Protocol *'. (class_addProtocol): Added casts to 'struct objc_protocol *' and 'Protocol *'. (class_copyProtocolList): Likewise. (protocol_conformsToProtocol): Likewise. (protocol_copyProtocolList): Likewise. * sarray.c: Include objc-private/module-abi-8.h. * sendmsg.c (method_get_next_argument): Removed. (method_get_first_argument): Removed. (method_get_nth_argument): Removed. (objc_msg_sendv): Removed. (arglist_t, retval_t): New. (class_get_class_method): Take a 'Class', not 'MetaClass', argument. * thr.c: Include module-abi-8.h. From-SVN: r174765 --- libobjc/objc/objc.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'libobjc/objc/objc.h') diff --git a/libobjc/objc/objc.h b/libobjc/objc/objc.h index 8719269bb35..c0d58e1cd11 100644 --- a/libobjc/objc/objc.h +++ b/libobjc/objc/objc.h @@ -36,11 +36,6 @@ extern "C" { #include -/* objc-decls.h is included because deprecated/objc_msg_sendv.h needs - it. When that goes away, the include of objc-decls.h should be - removed. */ -#include "objc-decls.h" - /* The current version of the GNU Objective-C Runtime library in compressed ISO date format. This should be updated any time a new version is released with changes to the public API (there is no @@ -76,15 +71,12 @@ typedef unsigned char BOOL; selector and know that the class implements it, you can use it to call the method for an object in the class. */ typedef const struct objc_selector *SEL; -#include "deprecated/struct_objc_selector.h" /* A Class is a class (in the object-oriented sense). In Objective-C there is the complication that each Class is an object itself, and so belongs to a class too. This class that a class belongs to is called its 'meta class'. */ typedef struct objc_class *Class; -#include "deprecated/MetaClass.h" -#include "deprecated/struct_objc_class.h" /* An 'id' is an object of an unknown class. The way the object data is stored inside the object is private and what you see here is @@ -140,18 +132,11 @@ typedef id (*IMP)(id, SEL, ...); there is no reason to even define a 'struct objc_protocol'. As all the structure details will be hidden, a Protocol basically is simply an object (as it should be). */ - /* typedef struct objc_object Protocol; */ - #include "deprecated/struct_objc_protocol.h" + typedef struct objc_object Protocol; #else /* __OBJC__ */ @class Protocol; #endif -/* Deprecated include - here temporarily, for backwards-compatibility - as reval_t, apply_t, arglist_t and objc_msg_lookup() used to be - defined here. objc_msg_lookup() is now defined in message.h, - included by objc-api.h or runtime.h. */ -#include "deprecated/objc_msg_sendv.h" - /* Compatibility note: the Apple/NeXT runtime defines sel_getName(), sel_registerName(), object_getClassName(), object_getIndexedIvars() in this file while the GNU runtime defines them in runtime.h. -- cgit v1.2.1