fixed documentation, removed out-commented code
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 16 Jul 2004 08:38:48 +0000 (08:38 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 16 Jul 2004 08:38:48 +0000 (08:38 +0000)
[r3482]

ir/tr/type_identify.c
ir/tr/type_identify.h

index 684af48..cbf76d7 100644 (file)
@@ -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);
 }
index ed3637e..90333d7 100644 (file)
@@ -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_ */