From d084264c3adee6da46e6d9e026cff5ba04909f31 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 19 Dec 2006 12:17:42 +0000 Subject: [PATCH] don't barf on protocols that are used by multiple classes in the same object file. --- libs/ruamoko/rua_obj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ruamoko/rua_obj.c b/libs/ruamoko/rua_obj.c index ca4e430a3..416c5caa3 100644 --- a/libs/ruamoko/rua_obj.c +++ b/libs/ruamoko/rua_obj.c @@ -504,7 +504,8 @@ obj_init_protocols (progs_t *pr, pr_protocol_list_t *protos) obj_init_protocols (pr, &G_STRUCT (pr, pr_protocol_list_t, proto->protocol_list)); } else { - PR_RunError (pr, "protocol broken"); + if (proto->class_pointer != PR_SetPointer (pr, proto_class)) + PR_RunError (pr, "protocol broken"); } } }