diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-11 18:17:19 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-11 18:17:19 +0000 |
commit | 90a2689f4d6b68b7542b0f7b04d66fea1cee5c0f (patch) | |
tree | 10e40b8bd1fa671cf3389ef739344e4e40b99999 /libobjc/objc-private | |
parent | 6c0098673b7e6e47c026b9827ce3e0d6ccc149db (diff) | |
download | gcc-90a2689f4d6b68b7542b0f7b04d66fea1cee5c0f.zip gcc-90a2689f4d6b68b7542b0f7b04d66fea1cee5c0f.tar.gz gcc-90a2689f4d6b68b7542b0f7b04d66fea1cee5c0f.tar.bz2 |
In libobjc/: 2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
* class.c (objc_getClassList): New.
(objc_getRequiredClass): New.
(objc_getMetaClass): New.
(objc_lookupClass): New.
(objc_getClass): New.
(__objc_get_unknown_class_handler): New.
(objc_setGetUnknownClassHandler): New.
(objc_get_class): Use __objc_get_unknown_class_handler.
(objc_lookup_class): Call objc_getClass.
* objc/objc-api.h: Updated comment and copyright notice.
* objc/runtime.h: Updated comments.
(objc_getClass): New.
(objc_lookupClass): New.
(objc_getMetaClass): New.
(objc_getRequiredClass): New.
(objc_getClassList): New.
(objc_setGetUnknownClassHandler): New.
(objc_get_unknown_class_handler): New.
* objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
instead of __objc_runtime_INCLUDE_GNU as include guard.
* objc-private/error.h (_objc_abort): Mark as noreturn.
From-SVN: r165326
Diffstat (limited to 'libobjc/objc-private')
-rw-r--r-- | libobjc/objc-private/error.h | 5 | ||||
-rw-r--r-- | libobjc/objc-private/runtime.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/libobjc/objc-private/error.h b/libobjc/objc-private/error.h index 2df9cb7..e8673f7 100644 --- a/libobjc/objc-private/error.h +++ b/libobjc/objc-private/error.h @@ -29,9 +29,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see This should only be used for errors that really are unrecorevable: failure to allocate memory, and failure to load an Objective-C module. All other usages of this function should be converted into - some milder type of error. + some milder type of error (unless aborting is explicitly required + by the documentation/API). */ void -_objc_abort (const char *fmt, ...); +_objc_abort (const char *fmt, ...) __attribute__ ((noreturn)); #endif /* __objc_private_error_INCLUDE_GNU */ diff --git a/libobjc/objc-private/runtime.h b/libobjc/objc-private/runtime.h index c924e4d..690427e 100644 --- a/libobjc/objc-private/runtime.h +++ b/libobjc/objc-private/runtime.h @@ -36,8 +36,8 @@ but can almost certainly be shrinked down. */ -#ifndef __objc_runtime_INCLUDE_GNU -#define __objc_runtime_INCLUDE_GNU +#ifndef __objc_private_runtime_INCLUDE_GNU +#define __objc_private_runtime_INCLUDE_GNU #include <stdarg.h> /* for varargs and va_list's */ @@ -98,4 +98,4 @@ extern void __objc_generate_gc_type_description (Class); } #endif /* __cplusplus */ -#endif /* not __objc_runtime_INCLUDE_GNU */ +#endif /* not __objc_private_runtime_INCLUDE_GNU */ |