#ifndef _ECL_MALLOC_H_25a738d9_ #define _ECL_MALLOC_H_25a738d9_ /* This file is in the public domain. */ #ifdef ECL_MALLOC_DEBUG #include /* for size_t */ extern void *ecl_malloc(size_t, const char *, int); extern void *ecl_realloc(void *, size_t, const char *, int); extern void ecl_free(void *, const char *, int); extern char *ecl_strdup(const char *, const char *, int); extern void ecl_consistency(void); #ifndef ECL_MALLOC_IMPLEMENTATION #define malloc(x) ecl_malloc((x),__FILE__,__LINE__) #define realloc(x,y) ecl_realloc((x),(y),__FILE__,__LINE__) #define free(x) ecl_free((x),__FILE__,__LINE__) #define strdup(x) ecl_strdup((x),__FILE__,__LINE__) #endif #endif #endif