From 9881ec52a8f14aab4af3e15bf6cfe9f26cb976b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Thu, 1 Jul 2004 09:38:56 +0000 Subject: [PATCH] comment [r3284] --- ir/tr/entity.c | 9 +++++---- ir/tr/type.h | 12 +++++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ir/tr/entity.c b/ir/tr/entity.c index 7cca358b8..8b11075c9 100644 --- a/ir/tr/entity.c +++ b/ir/tr/entity.c @@ -924,9 +924,11 @@ static entity *resolve_ent_polymorphy2 (type *dynamic_class, entity* static_ent) return res; } -/* Returns the dynamically referenced entity if the static entity and the - * dynamic type are given. - * Search downwards in overwritten tree. */ +/** Resolve polymorphy in the inheritance relation. + * + * Returns the dynamically referenced entity if the static entity and the + * dynamic type are given. + * Search downwards in overwritten tree. */ entity *resolve_ent_polymorphy(type *dynamic_class, entity* static_ent) { entity *res; assert(static_ent && static_ent->kind == k_entity); @@ -939,7 +941,6 @@ entity *resolve_ent_polymorphy(type *dynamic_class, entity* static_ent) { dump_entity(static_ent); dump_type(get_entity_owner(static_ent)); dump_type(dynamic_class); - } assert(res); return res; diff --git a/ir/tr/type.h b/ir/tr/type.h index 903e9d6ed..a8ea2a626 100644 --- a/ir/tr/type.h +++ b/ir/tr/type.h @@ -125,11 +125,13 @@ typedef struct type type; */ void free_type_entities(type *tp); -/** Frees the memory used by the type. Does not free the entities - belonging to the type, except for the array element entity. - Does not free if tp is "none" or "unknown". - Frees entities in value param subtypes of method types!!! Make sure these - are not referenced any more. */ +/** Frees the memory used by the type. + * + * Removes the type from the type list. Does not free the entities + * belonging to the type, except for the array element entity. Does + * not free if tp is "none" or "unknown". Frees entities in value + * param subtypes of method types!!! Make sure these are not + * referenced any more. */ void free_type(type *tp); tp_op* get_type_tpop(type *tp); -- 2.20.1