renamed hash_name to firm_hash_name to prevent name_clash to Dg frontend
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 12 Jan 2005 12:45:59 +0000 (12:45 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 12 Jan 2005 12:45:59 +0000 (12:45 +0000)
[r4873]

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

index 66ebba3..bdd1127 100644 (file)
@@ -61,7 +61,7 @@ int compare_strict (const void *tp1, const void *tp2) {
 }
 
 /* stuff to compute a hash value for a type. */
-int hash_name (type *tp) {
+int firm_hash_name (type *tp) {
   unsigned h = (unsigned)tp->type_op;
   h = 9*h + (unsigned)tp->name;
   return h;
@@ -118,7 +118,7 @@ type *mature_type_free_entities(type *tp) {
 /* initialize this module */
 void init_type_identify(type_identify_if_t *ti_if) {
   compare_types_func = ti_if && ti_if->cmp  ? ti_if->cmp  : compare_strict;
-  hash_types_func    = ti_if && ti_if->hash ? ti_if->hash : hash_name;
+  hash_types_func    = ti_if && ti_if->hash ? ti_if->hash : firm_hash_name;
 
   type_table = new_pset (compare_types_func, 8);
 }
index 17518b5..608c1c7 100644 (file)
@@ -56,7 +56,7 @@ typedef int (hash_types_func_t)(type *tp);
  *
  * Uses the name of the type and the type opcode to compute the hash.
  */
-int hash_name (type *tp);
+int firm_hash_name (type *tp);
 
 /* ------------------------------------------------------------------------ */
 
@@ -127,7 +127,7 @@ typedef struct _type_identify_if_t {
  * @param ti_if    The interface functions for this module.
  *
  * If the parameter ti_if is NULL, the default functions compare_strict() and
- * hash_name() will be used.
+ * firm_hash_name() will be used.
  */
 void init_type_identify(type_identify_if_t *ti_if);