From: Michael Beck Date: Fri, 16 Jul 2004 08:38:48 +0000 (+0000) Subject: fixed documentation, removed out-commented code X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=82e0b4669b314233aa9d3d22cf137dd191383e65;p=libfirm fixed documentation, removed out-commented code [r3482] --- diff --git a/ir/tr/type_identify.c b/ir/tr/type_identify.c index 684af480c..cbf76d771 100644 --- a/ir/tr/type_identify.c +++ b/ir/tr/type_identify.c @@ -11,9 +11,8 @@ */ /** - * - * file type.c - implementation of the datastructure to hold - * type information. + * file type.c - implementation of the datastructure to hold + * type information. * (C) 2004 by Universitaet Karlsruhe * Goetz Lindenmaier * @@ -51,9 +50,7 @@ int compare_names (const void *tp1, const void *tp2) { t1->name != t2->name ) ); } - /* stuff for comparing two types. */ -//int compare_strict (type *tp1, type *tp2) { int compare_strict (const void *tp1, const void *tp2) { type *t1 = (type *) tp1; type *t2 = (type *) tp2; @@ -121,8 +118,5 @@ type *mature_type_free_entities(type *tp) { } void init_type_identify(void) { - //type_table = new_pset ((int (const void *, const void *))compare_types_func, 8); - type_table = new_pset (compare_types_func, 8); - //type_table = new_pset (compare_names, 8); } diff --git a/ir/tr/type_identify.h b/ir/tr/type_identify.h index ed3637e27..90333d746 100644 --- a/ir/tr/type_identify.h +++ b/ir/tr/type_identify.h @@ -30,19 +30,18 @@ typedef struct type type; * @param tp1 The first type to compare. * @param tp2 The second type to compare. */ -//typedef int (*compare_types_func_tp) (type *tp1, type *tp2); typedef int (*compare_types_func_tp) (const void *tp1, const void *tp2); /** Compares two types by their name. * * Compares the opcode and the name of the types. If these are - * equal returns true, else false. + * equal returns 0, else non-zero. */ int compare_names (const void *tp1, const void *tp2); /** Compares two types strict. * - * returns true if tp1 == tp2 + * returns 0 if tp1 == tp2, else non-zero */ int compare_strict (const void *tp1, const void *tp2); @@ -135,4 +134,9 @@ type * mature_type_free(type *tp); */ type * mature_type_free_entities(type *tp); +/** + * initialise the type identifier module. + */ +void init_type_identify(void); + # endif /* _TYPE_IDENTIFY_H_ */