drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[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_calloc (size_t, size_t, int, const char*);
12 void _mem_realloc (void*, size_t, int, const char*);
13
14 #define mem_calloc(s,c) _mem_calloc(s,c,__LINE__,__FILE__)
15 #define mem_realloc(p,c) _mem_realloc(p,c,__LINE__,__FILE__)
16
17 #endif /* !_LIB_MEM_H */