aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-06-25 16:13:21 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-06-25 16:13:21 -0400
commit38692f1f94e9483345a45de94d2a70443e4717e4 (patch)
tree40629c46d57381b85367c0864641269577eb6eaf
parentc3fb89daf573163de78694a643965bdcccbc988d (diff)
downloadgcc-38692f1f94e9483345a45de94d2a70443e4717e4.zip
gcc-38692f1f94e9483345a45de94d2a70443e4717e4.tar.gz
gcc-38692f1f94e9483345a45de94d2a70443e4717e4.tar.bz2
(OBJC_ERR_BAD_STATE): New error code.
On NeXT redefine object_copy and object_dispose to avoid a conflict with those defined in system library. From-SVN: r14306
-rw-r--r--gcc/objc/objc-api.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/objc/objc-api.h b/gcc/objc/objc-api.h
index 2f5e8de..1f417f8 100644
--- a/gcc/objc/objc-api.h
+++ b/gcc/objc/objc-api.h
@@ -127,6 +127,8 @@ objc_error_handler objc_set_error_handler(objc_error_handler func);
#define OBJC_ERR_UNIMPLEMENTED 30 /* Method is not implemented */
+#define OBJC_ERR_BAD_STATE 40 /* Bad thread state */
+
/*
** Set this variable nonzero to print a line describing each
** message that is sent. (this is currently disabled)
@@ -443,12 +445,6 @@ BOOL sel_is_mapped (SEL aSel);
extern id class_create_instance(Class class);
-/* You should call this function immediately after a bundle has loaded the
- code. This function sends the +load message to all classes/categories
- just loaded and then calls the _objc_load_callback function for each
- class/category. */
-extern void objc_send_load (void);
-
static inline const char *
class_get_class_name(Class class)
{
@@ -507,6 +503,12 @@ method_get_imp(Method_t method)
IMP get_imp (Class class, SEL sel);
+/* Redefine on NeXTSTEP so as not to conflict with system function */
+#ifdef __NeXT__
+#define object_copy gnu_object_copy
+#define object_dispose gnu_object_dispose
+#endif
+
id object_copy(id object);
id object_dispose(id object);