X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftype_identify.h;h=85bc34fd9d00ba36ec3165d86aba9b2a381c0115;hb=3082a470a6c3b42c7b531fb6492efcd14567be0a;hp=17518b50ca9a484684dd88e97370bb7b22ba9668;hpb=fa4b053e1b708fcf7e7cfa47f6f99e79a38fbfdd;p=libfirm diff --git a/ir/tr/type_identify.h b/ir/tr/type_identify.h index 17518b50c..85bc34fd9 100644 --- a/ir/tr/type_identify.h +++ b/ir/tr/type_identify.h @@ -17,10 +17,7 @@ # ifndef _TYPE_IDENTIFY_H_ # define _TYPE_IDENTIFY_H_ -#ifndef _TYPE_TYPEDEF_ -#define _TYPE_TYPEDEF_ -typedef struct type type; -#endif +#include "firm_types.h" /* ------------------------------------------------------------------------ */ @@ -50,13 +47,13 @@ int compare_strict (const void *tp1, const void *tp2); * * @param tp The type to compute a hash for. */ -typedef int (hash_types_func_t)(type *tp); +typedef int (hash_types_func_t)(ir_type *tp); /** Computes a hash value by the type name. * * Uses the name of the type and the type opcode to compute the hash. */ -int hash_name (type *tp); +int firm_hash_name (ir_type *tp); /* ------------------------------------------------------------------------ */ @@ -78,7 +75,7 @@ int hash_name (type *tp); * * @param tp The type to mature. */ -type * mature_type(type *tp); +ir_type * mature_type(ir_type *tp); /** Finalize type construction. * @@ -92,7 +89,7 @@ type * mature_type(type *tp); * * @param tp The type to mature. */ -type * mature_type_free(type *tp); +ir_type * mature_type_free(ir_type *tp); /** Finalize type construction. * @@ -109,7 +106,7 @@ type * mature_type_free(type *tp); * * @param tp The type to mature. */ -type * mature_type_free_entities(type *tp); +ir_type * mature_type_free_entities(ir_type *tp); /** * The interface type for the type identify module; @@ -127,7 +124,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);