aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorKresten Krab Thorup <krab@gcc.gnu.org>1993-04-14 09:12:35 +0000
committerKresten Krab Thorup <krab@gcc.gnu.org>1993-04-14 09:12:35 +0000
commitadfab6dfcaf34e7648e123b4ee2238292ea014a4 (patch)
treee5388ab8148f269c71770ca5fc3172c97b56df02 /gcc/objc
parentd3548a5be95fd4b88a86a9c8f9d2c4918c524ab7 (diff)
downloadgcc-adfab6dfcaf34e7648e123b4ee2238292ea014a4.zip
gcc-adfab6dfcaf34e7648e123b4ee2238292ea014a4.tar.gz
gcc-adfab6dfcaf34e7648e123b4ee2238292ea014a4.tar.bz2
(__objc_finish_read_root_object): Corrected name of method -awake: to -awake for compatibility
(__objc_finish_read_root_object): Corrected name of method -awake: to -awake for compatibility (objc_get_stream_class_version): New function From-SVN: r4148
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/archive.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/objc/archive.c b/gcc/objc/archive.c
index d3d4d60..4e6bb7b 100644
--- a/gcc/objc/archive.c
+++ b/gcc/objc/archive.c
@@ -1324,7 +1324,7 @@ static void __objc_finish_write_root_object(struct objc_typed_stream* stream)
static void __objc_finish_read_root_object(struct objc_typed_stream* stream)
{
node_ptr node;
- SEL awake_sel = sel_get_uid ("awake:");
+ SEL awake_sel = sel_get_uid ("awake");
/* resolve object forward references */
for (node = hash_next (stream->object_refs, NULL); node;
@@ -1354,7 +1354,7 @@ static void __objc_finish_read_root_object(struct objc_typed_stream* stream)
{
id object = node->value;
if (__objc_responds_to (object, awake_sel))
- (*objc_msg_lookup(object, awake_sel))(object, awake_sel, stream);
+ (*objc_msg_lookup(object, awake_sel))(object, awake_sel);
}
}
@@ -1476,3 +1476,11 @@ objc_flush_typed_stream (TypedStream* stream)
(*stream->flush)(stream->physical);
}
+int
+objc_get_stream_class_version (TypedStream* stream, Class* class)
+{
+ if (stream->class_table)
+ return (int) hash_value_for_key (stream->class_table, class->name);
+ else
+ return class_get_version (class);
+}