-/* 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() */
# 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 ();
#include "host.h"
-
+#include <stdbool.h>
/* Alignment of nodes, cf common/tag.h, a power of two.
#define IS_POW2(n) ((((n)-1) & (n)) == 0)
-typedef unsigned char bool;
typedef int (*cmp_fun) (const void *, const void *);
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)))
# define XMALLOC_TRACE
#endif
-#endif
+#endif /* _MISC_H_ */