removed double include
[libfirm] / ir / adt / xmalloc.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/adt/xmalloc.h
4  * Purpose:     More comfortable allocations.
5  * Author:      Markus Armbruster
6  * Modified by:
7  * Created:     1999 by getting from fiasco
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1995, 1996 Markus Armbruster
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13
14 #ifndef _XMALLOC_H_
15 #define _XMALLOC_H_
16
17 #include <stddef.h>
18
19 /* xmalloc() & friends. */
20
21 void *xmalloc(size_t size);
22 void *xcalloc(size_t num, size_t size);
23 void *xrealloc(void *ptr, size_t size);
24 char *xstrdup(const char *str);
25 void free(void *ptr);
26
27 #define xfree(ptr)      free(ptr)
28
29 #endif /* _XMALLOC_H_ */