}
/* 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;
/* 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);
}
*
* 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);
/* ------------------------------------------------------------------------ */
* @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);