summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/objc/Object.m
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/gcc/objc/Object.m')
-rw-r--r--gnu/usr.bin/gcc/objc/Object.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/gnu/usr.bin/gcc/objc/Object.m b/gnu/usr.bin/gcc/objc/Object.m
index 518d02a3a67..d6a10019773 100644
--- a/gnu/usr.bin/gcc/objc/Object.m
+++ b/gnu/usr.bin/gcc/objc/Object.m
@@ -1,5 +1,5 @@
/* The implementation of class Object for Objective-C.
- Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -29,8 +29,6 @@ Boston, MA 02111-1307, USA. */
#include "objc/Protocol.h"
#include "objc/objc-api.h"
-extern void (*_objc_error)(id object, const char *format, va_list);
-
extern int errno;
#define MAX_CLASS_NAME_LEN 256
@@ -215,7 +213,7 @@ extern int errno;
}
}
- if (parent = [self superClass])
+ if ((parent = [self superClass]))
return [parent conformsTo: aProtocol];
else
return NO;
@@ -337,7 +335,7 @@ extern size_t strlen(const char*);
object_is_instance(self)?"instance":"class",
(aString!=NULL)?aString:"");
va_start(ap, aString);
- (*_objc_error)(self, fmt, ap);
+ objc_error(self, OBJC_ERR_UNKNOWN, fmt, ap);
va_end(ap);
return nil;
#undef FMT