Added copyright headers
[libfirm] / ir / common / misc.h
index 67fce7d..f362a12 100644 (file)
@@ -1,10 +1,18 @@
-/* Misc. declarations.
-   Copyright (C) 1995, 1996 Markus Armbruster
-   All rights reserved. */
-
-#ifndef _MISC_H
-#define _MISC_H
-
+/*
+ * Project:     libFIRM
+ * File name:   ir/common/misc.h
+ * Purpose:     Misc. declarations.
+ * Author:      Markus Armbruster
+ * Modified by:
+ * Created:     1999 by getting from fiasco
+ * CVS-ID:      $Id$
+ * Copyright:   (c) 1995, 1996 Markus Armbruster
+ * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ */
+
+
+#ifndef _MISC_H_
+#define _MISC_H_
 
 /* Declare alloca() */
 
@@ -18,7 +26,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 +37,7 @@ void *alloca ();
 
 
 #include "host.h"
-
+#include <stdbool.h>
 
 /* Alignment of nodes, cf common/tag.h, a power of two.
 
@@ -53,7 +61,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 +74,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 +88,4 @@ extern const char *tmalloc_tag;
 # define XMALLOC_TRACE
 #endif
 
-#endif
+#endif /* _MISC_H_ */