Rocco Rutte:
[apps/madmutt.git] / lib / mem.h
1 /*
2  * This file is part of mutt-ng, see http://www.muttng.org/.
3  * It's licensed under the GNU General Public License,
4  * please see the file GPL in the top level source directory.
5  */
6 #ifndef _LIB_MEM_H
7 #define _LIB_MEM_H
8
9 #include <sys/types.h>
10
11 void* _mem_malloc (size_t, int, const char*);
12 void* _mem_calloc (size_t, size_t, int, const char*);
13 void _mem_realloc (void*, size_t, int, const char*);
14 void _mem_free (void*);
15
16 #define mem_malloc(s) _mem_malloc(s,__LINE__,__FILE__)
17 #define mem_calloc(s,c) _mem_calloc(s,c,__LINE__,__FILE__)
18 #define mem_realloc(p,c) _mem_realloc(p,c,__LINE__,__FILE__)
19 #define mem_free(x) _mem_free(x)
20
21 #endif /* !_LIB_MEM_H */