comments, freeing routine
[libfirm] / ir / tr / type.h
index 4454c5d..a938636 100644 (file)
@@ -192,8 +192,8 @@ unsigned long get_type_visited(type *tp);
 void          set_type_visited(type *tp, unsigned long num);
 /* Sets visited field in type to type_visited. */
 void          mark_type_visited(type *tp);
-/* @@@ name clash!! bool          type_visited(type *tp); */
-bool          type_not_visited(type *tp);
+/* @@@ name clash!! int           type_visited(type *tp); */
+int           type_not_visited(type *tp);
 
 void*         get_type_link(type *tp);
 void          set_type_link(type *tp, void *l);
@@ -440,7 +440,7 @@ void set_class_dfn (type *clss, int dfn);
 int  get_class_dfn (type *clss);
 
 /** Returns true if a type is a class type. */
-bool is_class_type(type *clss);
+int is_class_type(type *clss);
 
 /** Returns true if low is subclass of high. */
 bool is_subclass_of(type *low, type *high);
@@ -487,7 +487,7 @@ void    set_struct_member   (type *strct, int pos, entity *member);
 void    remove_struct_member (type *strct, entity *member);
 
 /** Returns true if a type is a struct type. */
-bool    is_struct_type(type *strct);
+int     is_struct_type(type *strct);
 
 /**
  * @page method_type   Representation of a method type
@@ -620,7 +620,7 @@ int get_method_first_variadic_param_index(type *method);
 void set_method_first_variadic_param_index(type *method, int index);
 
 /** Returns true if a type is a method type. */
-bool  is_method_type     (type *method);
+int   is_method_type     (type *method);
 
 /**
  *   @page union_type  Representation of a union type.
@@ -655,7 +655,7 @@ void    set_union_member (type *uni, int pos, entity *member);
 void    remove_union_member (type *uni, entity *member);
 
 /** Returns true if a type is a union type. */
-bool    is_union_type          (type *uni);
+int     is_union_type          (type *uni);
 
 /**
  * @page array_type    Representation of an array type
@@ -725,7 +725,7 @@ void  set_array_element_entity (type *array, entity *ent);
 entity *get_array_element_entity (type *array);
 
 /** Returns true if a type is an array type. */
-bool   is_array_type         (type *array);
+int    is_array_type(type *array);
 
 /**
  * @page enumeration_type      Representation of an enumeration type
@@ -766,7 +766,7 @@ ident  *get_enumeration_nameid  (type *enumeration, int pos);
 const char *get_enumeration_name(type *enumeration, int pos);
 
 /** Returns true if a type is a enumeration type. */
-bool    is_enumeration_type     (type *enumeration);
+int     is_enumeration_type     (type *enumeration);
 
 /**
  * @page pointer_type  Representation of a pointer type
@@ -795,7 +795,7 @@ void  set_pointer_points_to_type (type *pointer, type *tp);
 type *get_pointer_points_to_type (type *pointer);
 
 /** Returns true if a type is a pointer type. */
-bool  is_pointer_type            (type *pointer);
+int   is_pointer_type            (type *pointer);
 
 /** Returns the first pointer type that has as points_to tp.
  *  Not efficient: O(#types).
@@ -816,7 +816,7 @@ type *new_type_primitive (ident *name, ir_mode *mode);
 type *new_d_type_primitive (ident *name, ir_mode *mode, dbg_info* db);
 
 /** Returns true if a type is a primitive type. */
-bool  is_primitive_type  (type *primitive);
+int  is_primitive_type  (type *primitive);
 
 
 /**