Commit 9881ec52 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

comment

[r3284]
parent ddf3db34
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment