don't try to create multiple objects for the same protocol

This commit is contained in:
Bill Currie 2006-12-16 08:09:10 +00:00 committed by Jeff Teunissen
parent 904197c70e
commit 48d9d96005

View file

@ -823,6 +823,11 @@ emit_protocol (protocol_t *protocol)
def_t *proto_def;
pr_protocol_t *proto;
proto_def = get_def (type_Protocol.aux_type,
va ("_OBJ_PROTOCOL_%s", protocol->name),
pr.scope, st_none);
if (proto_def)
return proto_def;
proto_def = get_def (type_Protocol.aux_type,
va ("_OBJ_PROTOCOL_%s", protocol->name),
pr.scope, st_static);