From: Michael Beck Date: Wed, 12 Jan 2005 12:45:59 +0000 (+0000) Subject: renamed hash_name to firm_hash_name to prevent name_clash to Dg frontend X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=09c034fb43147f1e1a61718d9db4f94f5ac62bf9;p=libfirm renamed hash_name to firm_hash_name to prevent name_clash to Dg frontend [r4873] --- diff --git a/ir/tr/type_identify.c b/ir/tr/type_identify.c index 66ebba383..bdd11278f 100644 --- a/ir/tr/type_identify.c +++ b/ir/tr/type_identify.c @@ -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); } diff --git a/ir/tr/type_identify.h b/ir/tr/type_identify.h index 17518b50c..608c1c7ed 100644 --- a/ir/tr/type_identify.h +++ b/ir/tr/type_identify.h @@ -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);