mirror of git://gcc.gnu.org/git/gcc.git
In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/objc-exception.h: Include objc-decls.h. Mark all functions with objc_EXPORT. * objc/objc-sync.h: Same change. From-SVN: r168041
This commit is contained in:
parent
c06a866409
commit
805a07f15e
|
@ -1,3 +1,9 @@
|
||||||
|
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
|
* objc/objc-exception.h: Include objc-decls.h. Mark all
|
||||||
|
functions with objc_EXPORT.
|
||||||
|
* objc/objc-sync.h: Same change.
|
||||||
|
|
||||||
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
|
2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
* Protocol.m: Moved all methods, with the exception of -isEqual:,
|
* Protocol.m: Moved all methods, with the exception of -isEqual:,
|
||||||
|
|
|
@ -27,6 +27,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
#define __objc_exception_INCLUDE_GNU
|
#define __objc_exception_INCLUDE_GNU
|
||||||
|
|
||||||
#include "objc.h"
|
#include "objc.h"
|
||||||
|
#include "objc-decls.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -55,14 +56,12 @@ extern "C" {
|
||||||
setting an 'objc_uncaught_exception_handler' function (using
|
setting an 'objc_uncaught_exception_handler' function (using
|
||||||
objc_set_uncaught_exception_handler(), see below); if one is set,
|
objc_set_uncaught_exception_handler(), see below); if one is set,
|
||||||
it is executed before abort() is called. An uncaught exception
|
it is executed before abort() is called. An uncaught exception
|
||||||
handler is expected to never return.
|
handler is expected to never return. */
|
||||||
*/
|
objc_EXPORT void objc_exception_throw (id exception);
|
||||||
void objc_exception_throw (id exception);
|
|
||||||
|
|
||||||
/* Compatibility note: the Apple/NeXT runtime seems to also have
|
/* Compatibility note: the Apple/NeXT runtime seems to also have
|
||||||
objc_exception_rethrow(), objc_begin_catch() and objc_end_catch().
|
objc_exception_rethrow(), objc_begin_catch() and objc_end_catch().
|
||||||
Currently the GNU runtime does not use them.
|
Currently the GNU runtime does not use them. */
|
||||||
*/
|
|
||||||
|
|
||||||
/* The following functions allow customizing to a certain extent the
|
/* The following functions allow customizing to a certain extent the
|
||||||
exception handling. They are not thread safe and should be called
|
exception handling. They are not thread safe and should be called
|
||||||
|
@ -70,8 +69,7 @@ void objc_exception_throw (id exception);
|
||||||
are mostly reserved for "Foundation" libraries; in the case of
|
are mostly reserved for "Foundation" libraries; in the case of
|
||||||
GNUstep, GNUstep Base may be using these functions to improve the
|
GNUstep, GNUstep Base may be using these functions to improve the
|
||||||
standard exception handling. You probably shouldn't use these
|
standard exception handling. You probably shouldn't use these
|
||||||
functions unless you are writing your own Foundation library.
|
functions unless you are writing your own Foundation library. */
|
||||||
*/
|
|
||||||
|
|
||||||
/* Compatibility note: objc_set_exception_preprocessor() (available on
|
/* Compatibility note: objc_set_exception_preprocessor() (available on
|
||||||
the Apple/NeXT runtime) is not available on the GNU runtime. */
|
the Apple/NeXT runtime) is not available on the GNU runtime. */
|
||||||
|
@ -88,7 +86,7 @@ typedef int (*objc_exception_matcher)(Class catch_class, id exception);
|
||||||
exception matcher function. This function is not safe to call in a
|
exception matcher function. This function is not safe to call in a
|
||||||
multi-threaded environment because other threads may be trying to
|
multi-threaded environment because other threads may be trying to
|
||||||
invoke the exception matcher while you change it! */
|
invoke the exception matcher while you change it! */
|
||||||
objc_exception_matcher
|
objc_EXPORT objc_exception_matcher
|
||||||
objc_setExceptionMatcher (objc_exception_matcher new_matcher);
|
objc_setExceptionMatcher (objc_exception_matcher new_matcher);
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,9 +98,8 @@ typedef void (*objc_uncaught_exception_handler)(id exception);
|
||||||
previous exception handler function. This function is not safe to
|
previous exception handler function. This function is not safe to
|
||||||
call in a multi-threaded environment because other threads may be
|
call in a multi-threaded environment because other threads may be
|
||||||
trying to invoke the uncaught exception handler while you change
|
trying to invoke the uncaught exception handler while you change
|
||||||
it.
|
it. */
|
||||||
*/
|
objc_EXPORT objc_uncaught_exception_handler
|
||||||
objc_uncaught_exception_handler
|
|
||||||
objc_setUncaughtExceptionHandler (objc_uncaught_exception_handler new_handler);
|
objc_setUncaughtExceptionHandler (objc_uncaught_exception_handler new_handler);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -27,6 +27,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
#define __objc_sync_INCLUDE_GNU
|
#define __objc_sync_INCLUDE_GNU
|
||||||
|
|
||||||
#include "objc.h"
|
#include "objc.h"
|
||||||
|
#include "objc-decls.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -41,17 +42,15 @@ extern "C" {
|
||||||
values.
|
values.
|
||||||
|
|
||||||
Note that you should not rely on the behaviour when 'object' is nil
|
Note that you should not rely on the behaviour when 'object' is nil
|
||||||
because it could change.
|
because it could change. */
|
||||||
*/
|
objc_EXPORT int objc_sync_enter (id object);
|
||||||
int objc_sync_enter (id object);
|
|
||||||
|
|
||||||
/* 'objc_sync_exit' is automatically called when exiting from a
|
/* 'objc_sync_exit' is automatically called when exiting from a
|
||||||
@synchronized() block. It unlocks the recursive lock associated
|
@synchronized() block. It unlocks the recursive lock associated
|
||||||
with 'object'. If 'object' is nil, it does nothing. It returns
|
with 'object'. If 'object' is nil, it does nothing. It returns
|
||||||
OBJC_SYNC_SUCCESS on success; see the enumeration below for error
|
OBJC_SYNC_SUCCESS on success; see the enumeration below for error
|
||||||
values.
|
values. */
|
||||||
*/
|
objc_EXPORT int objc_sync_exit (id object);
|
||||||
int objc_sync_exit (id object);
|
|
||||||
|
|
||||||
/* All the possible return values for objc_sync_enter() and
|
/* All the possible return values for objc_sync_enter() and
|
||||||
objc_sync_exit().
|
objc_sync_exit().
|
||||||
|
|
Loading…
Reference in New Issue