summaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-03 17:02:03 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-03 17:02:03 +0000
commit75ecb4c33c8f647f47a0b3113cc3d3a7dbd442d4 (patch)
treeef8a6176a38c99a2cbead3be1e04218d8f213198 /libobjc
parent506cfbc8d584920ca94c303012c4d287f3c4e58f (diff)
downloadgcc-75ecb4c33c8f647f47a0b3113cc3d3a7dbd442d4.tar.gz
In libobjc/:
2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com> * Object.m ([-forward::]): Removed. * objc/deprecated/Object.h ([-forward::]): Removed. * sendmsg.c (__objc_forward): Updated comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/ChangeLog6
-rw-r--r--libobjc/Object.m6
-rw-r--r--libobjc/objc/deprecated/Object.h1
-rw-r--r--libobjc/sendmsg.c9
4 files changed, 12 insertions, 10 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index 86c34b51c19..bef84e74d34 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,5 +1,11 @@
2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
+ * Object.m ([-forward::]): Removed.
+ * objc/deprecated/Object.h ([-forward::]): Removed.
+ * sendmsg.c (__objc_forward): Updated comments.
+
+2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
+
* Makefile.in (OBJC_H): Removed objc-list.h.
(OBJC_DEPRECATED_H): Removed objc-list.h.
* objc/objc-list.h: File removed.
diff --git a/libobjc/Object.m b/libobjc/Object.m
index 7e414c4014d..281be832005 100644
--- a/libobjc/Object.m
+++ b/libobjc/Object.m
@@ -248,12 +248,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
:class_get_class_method(self->isa, aSel)));
}
-- (retval_t)forward:(SEL)aSel :(arglist_t)argFrame
-{
- (void) argFrame; /* UNUSED */
- return (retval_t)[self doesNotRecognize: aSel];
-}
-
- (retval_t)performv:(SEL)aSel :(arglist_t)argFrame
{
return objc_msg_sendv(self, aSel, argFrame);
diff --git a/libobjc/objc/deprecated/Object.h b/libobjc/objc/deprecated/Object.h
index 91b9a86d06e..d7924e04761 100644
--- a/libobjc/objc/deprecated/Object.h
+++ b/libobjc/objc/deprecated/Object.h
@@ -49,7 +49,6 @@
- (struct objc_method_description *)descriptionForMethod:(SEL)aSel;
/* Forwarding */
-- (retval_t)forward:(SEL)aSel :(arglist_t)argFrame;
- (retval_t)performv:(SEL)aSel :(arglist_t)argFrame;
/* Posing */
diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c
index 137731ae9d1..bb525b155b4 100644
--- a/libobjc/sendmsg.c
+++ b/libobjc/sendmsg.c
@@ -936,9 +936,12 @@ __objc_block_forward (id rcv, SEL op, ...)
}
-/* This function is installed in the dispatch table for all methods
- which are not implemented. Thus, it is called when a selector is
- not recognized. */
+/* This function is called for methods which are not implemented,
+ unless a custom forwarding routine has been installed. Please note
+ that most serious users of libobjc (eg, GNUstep base) do install
+ their own forwarding routines, and hence this is never actually
+ used. But, if no custom forwarding routine is installed, this is
+ called when a selector is not recognized. */
static retval_t
__objc_forward (id object, SEL sel, arglist_t args)
{