X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Fmem.h;h=251444ebe9c2829c4a76fc7ac1105a635beb5376;hp=1afac35a229b6b04971ebc972e354fd4e811dc0c;hb=189d7d65c27f269b7d85473483488cc6ebbf12f5;hpb=492434e350e3ca2d3330c2589de3f9485929dab7 diff --git a/lib/mem.h b/lib/mem.h index 1afac35..251444e 100644 --- a/lib/mem.h +++ b/lib/mem.h @@ -3,20 +3,19 @@ * It's licensed under the GNU General Public License, * please see the file GPL in the top level source directory. */ - #ifndef _LIB_MEM_H #define _LIB_MEM_H #include -void* _safe_malloc (size_t, int, const char*); -void* _safe_calloc (size_t, size_t, int, const char*); -void _safe_realloc (void*, size_t, int, const char*); -void _safe_free (void*); +void* _mem_malloc (size_t, int, const char*); +void* _mem_calloc (size_t, size_t, int, const char*); +void _mem_realloc (void*, size_t, int, const char*); +void _mem_free (void*); -#define safe_malloc(s) _safe_malloc(s,__LINE__,__FILE__) -#define safe_calloc(s,c) _safe_calloc(s,c,__LINE__,__FILE__) -#define safe_realloc(p,c) _safe_realloc(p,c,__LINE__,__FILE__) -#define FREE(x) _safe_free(x) +#define mem_malloc(s) _mem_malloc(s,__LINE__,__FILE__) +#define mem_calloc(s,c) _mem_calloc(s,c,__LINE__,__FILE__) +#define mem_realloc(p,c) _mem_realloc(p,c,__LINE__,__FILE__) +#define mem_free(x) _mem_free(x) #endif /* !_LIB_MEM_H */