#define ECOLI_MALLOC_
#include <sys/types.h>
+#include <stdlib.h>
+#include <string.h>
typedef void *(*ec_malloc_t)(size_t size, const char *file, unsigned int line);
typedef void (*ec_free_t)(void *ptr, const char *file, unsigned int line);
char *__ec_strndup(const char *s, size_t n, const char *file,
unsigned int line);
+/* XXX rename into ec_malloc, and change macro to uppercase */
+void *ec_malloc2(size_t size);
+void ec_free2(void *ptr);
+
/* we use macros here to ensure the file/line stay correct when
* debugging the standard malloc with valgrind */