mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-25 11:54:01 +08:00
7b86998664
* objc/deprecated/objc_error.h: New file. * objc/objc-api.h: Include deprecated/objc_error.h instead of defining objc_error and related. * error.c: New file. Added _objc_abort function which replaces objc_error. No change in functionality as they both print an error and abort. * misc.c: File removed. Code moved into memory.c and error.c. * memory.c: New file. * objc-private/error.h: New file. * archive.c: Include objc-private/error.h and use _objc_abort instead of objc_error everywhere. * class.c: Same change. * encoding.c: Same change. * init.c: Same change, and simplified init_check_module_version. * memory.c: Same change. * sendmsg.c: Same change. * thr.c: Same change. * Makefile.in (OBJ_DEPRECATED_H): Added objc_error.h. (OBJ_H): Reordered list. (OBJS): Removed misc.lo, added memory.lo and error.lo. (OBJS_GC): Removed misc_gc.lo, added memory_gc.lo and error_gc.lo. (misc_gc.lo): Rule removed. (error_gc.lo): Rule added. (memory_gc.lo): Rule added. From-SVN: r164223 |
||
---|---|---|
.. | ||
deprecated | ||
encoding.h | ||
hash.h | ||
message.h | ||
NXConstStr.h | ||
objc-api.h | ||
objc-decls.h | ||
objc-exception.h | ||
objc-list.h | ||
objc.h | ||
Object.h | ||
Protocol.h | ||
README | ||
sarray.h | ||
thr.h | ||
typedstream.h |
This directory contains the public headers that are installed when libobjc is installed. Deprecated parts of the API should be moved into objc/deprecated and then included by public headers until they are finally removed. For example, if objc-api.h contains an _objc_unexpected_exception variable which is then deprecated, it should be moved into a header in objc/deprecated. This header is then included into objc-api.h. The result is that all the deprecated parts of the API are clearly separated in objc/deprecated, while objc/ retains only the current public API.