eliminated compiler wearnings
[libfirm] / ir / st / st.c
index 259a8de..7066752 100644 (file)
      $Id$
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 # include "st.h"
 
 # include "irgwalk.h"
 #  include <stdio.h>
 # ifdef DEBUG_libfirm
 # endif /* def DEBUG_libfirm */
-#  include <malloc.h>
+#  include <stdlib.h>
 # include "misc.h"
 
 /* init globals: */
-static dtree_t *trees = 0;
+/*static*/ dtree_t *trees = 0;
 /*
 static dtree_t *last  = 0;
 */
@@ -48,7 +52,7 @@ static void count_block (ir_node *block, void *env)
 # endif /* def DEBUG_libfirm */
 
   fprintf (stdout, "%s: Block(%p) has # (%i)\n",
-                  __FILE__ ":" __PRETTY_FUNCTION__, block, *n);
+                  __FILE__ ":count_block", block, *n);
 
   (*n) ++;
 }
@@ -70,7 +74,7 @@ static int get_n_blocks (ir_graph *graph)
   irg_block_walk (end_block, count_block, NULL, &n);
 
   fprintf (stdout, "%s: Graph(%p) has (%i) blocks\n",
-                  __FILE__ ":" __PRETTY_FUNCTION__, graph, n);
+                  __FILE__ ":get_n_blocks", graph, n);
 
   return (n);
 }