renamed all type * to ir_type *
[libfirm] / ir / tr / trvrfy.c
index 21054ec..bb9c998 100644 (file)
@@ -41,18 +41,18 @@ static int check_class(type *tp) {
       entity *ovw = get_entity_overwrites(mem, j);
       /*printf(" overwrites: "); DDME(ovw);*/
       /* Check whether ovw is member of one of tp's supertypes. If so,
-     the representation is correct. */
-      found = false;
+         the representation is correct. */
+      found = 0;
       for (k = 0; k < get_class_n_supertypes(tp); k++) {
-    if (get_class_member_index(get_class_supertype(tp, k), ovw) >= 0) {
-      found = true;
-      break;
-    }
+        if (get_class_member_index(get_class_supertype(tp, k), ovw) >= 0) {
+          found = 1;
+          break;
+        }
       }
       if (!found) {
-    DDMT(tp); DDME(mem);
-    assert(found && "overwrites an entity not contained in direct supertype");
-    return error_ent_not_cont;
+        DDMT(tp); DDME(mem);
+        assert(found && "overwrites an entity not contained in direct supertype");
+        return error_ent_not_cont;
       }
     }
 
@@ -122,7 +122,7 @@ static void on_irg_storage(ir_node *n, void *env) {
 }
 
 /**
- * checks wheater a given constant IR node is NOT on the
+ * checks whether a given constant IR node is NOT on the
  * constant IR graph.
  */
 static int constant_on_wrong_irg(ir_node *n) {
@@ -145,7 +145,7 @@ static int constants_on_wrong_irg(entity *ent) {
     int i;
     for (i = 0; i < get_compound_ent_n_values(ent); i++) {
       if (constant_on_wrong_irg(get_compound_ent_value(ent, i)))
-    return 1;
+        return 1;
     }
   } else {
     /* Might not be set if entity belongs to a description or is external allocated. */
@@ -210,7 +210,7 @@ static int check_entity(entity *ent) {
     if (is_atomic_type(tp)) {
       ir_node *val = get_atomic_ent_value(ent);
       if (val)
-       assert(get_irn_mode(val) == get_type_mode(tp) &&
+        assert(get_irn_mode(val) == get_type_mode(tp) &&
               "Mode of constant in entity must match type.");
     }
   }