save
[protos/libecoli.git] / lib / ecoli_malloc.h
index 4c49649..76b63e0 100644 (file)
@@ -29,6 +29,8 @@
 #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);
@@ -57,6 +59,10 @@ char *__ec_strdup(const char *s, 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 */