automatically generate node constructor declarations
[libfirm] / ir / tr / typewalk.c
index 656d2c7..92d81a3 100644 (file)
@@ -245,7 +245,7 @@ static void irn_type_walker(
      If so start a walk over that information. */
 static void start_type_walk(ir_node *node, void *ctx)
 {
-       type_walk_env *env = ctx;
+       type_walk_env *env = (type_walk_env*)ctx;
        type_walk_func *pre;
        type_walk_func *post;
        void *envi;
@@ -497,9 +497,8 @@ static void type_walk_super_2(type_or_ent tore, type_walk_func *pre,
        }
 }
 
-void type_walk_super(type_walk_func *pre,
-                     type_walk_func *post,
-                     void *env) {
+void type_walk_super(type_walk_func *pre, type_walk_func *post, void *env)
+{
        int         i, n_types = get_irp_n_types();
        type_or_ent cont;