some fixes for xml dumper / still buggy.
[libfirm] / ir / common / misc.h
index 67fce7d..55e5f61 100644 (file)
@@ -2,9 +2,10 @@
    Copyright (C) 1995, 1996 Markus Armbruster
    All rights reserved. */
 
-#ifndef _MISC_H
-#define _MISC_H
+/* $Id$ */
 
+#ifndef _MISC_H_
+#define _MISC_H_
 
 /* Declare alloca() */
 
@@ -18,7 +19,7 @@
 # else
 #   if defined(_AIX) && !defined(C_ALLOCA)
       /* if your version of AIX chokes on this, use gcc @@@ or alloca.o */
-#pragma alloca
+    #pragma alloca
 #   else
 #     ifndef alloca /* predefined by HP cc +Olibcalls */
 void *alloca ();
@@ -29,7 +30,7 @@ void *alloca ();
 
 
 #include "host.h"
-
+#include <stdbool.h>
 
 /* Alignment of nodes, cf common/tag.h, a power of two.
 
@@ -53,7 +54,6 @@ void *alloca ();
 
 #define IS_POW2(n) ((((n)-1) & (n)) == 0)
 
-typedef unsigned char bool;
 typedef int (*cmp_fun) (const void *, const void *);
 
 
@@ -67,6 +67,7 @@ extern void *xmalloc (size_t);
 extern void *xrealloc (void *, size_t);
 extern char *xstrdup (const char *);
 extern void xnomem (void);
+extern void free (void *);
 
 # define xmalloc(size) (XMALLOC_TRACE (xmalloc) ((size)))
 # define xrealloc(ptr, size) (XMALLOC_TRACE (xrealloc) ((ptr), (size)))
@@ -80,4 +81,4 @@ extern const char *tmalloc_tag;
 # define XMALLOC_TRACE
 #endif
 
-#endif
+#endif /* _MISC_H_ */