1 #ifndef EL__UTIL_MEMLIST_H
2 #define EL__UTIL_MEMLIST_H
14 #if defined(DEBUG_MEMLIST) && defined(HAVE_VARIADIC_MACROS)
15 struct memory_list
*debug_getml(unsigned char *file
, int line
, void *p
, ...);
16 void debug_add_to_ml(unsigned char *file
, int line
, struct memory_list
**ml
, ...);
17 #define getml(...) debug_getml(__FILE__, __LINE__, __VA_ARGS__)
18 #define add_to_ml(...) debug_add_to_ml(__FILE__, __LINE__, __VA_ARGS__)
20 struct memory_list
*getml(void *p
, ...);
21 void add_to_ml(struct memory_list
**ml
, ...);
25 void debug_add_one_to_ml(unsigned char *file
, int line
, struct memory_list
**ml
, void *p
);
26 #define add_one_to_ml(ml, p) debug_add_one_to_ml(__FILE__, __LINE__, ml, p)
28 void add_one_to_ml(struct memory_list
**ml
, void *p
);
31 void freeml(struct memory_list
*);