Go to the documentation of this file.
9 #ifndef _SQUID_COMPAT_XALLOC_H
10 #define _SQUID_COMPAT_XALLOC_H
73 #define safe_free(x) while ((x)) { free_const((x)); (x) = nullptr; }
79 #if XMALLOC_STATISTICS
80 extern void malloc_statistics(
void (*func) (
int,
int,
int,
void *),
void *data);
static void xfree(const void *p)
void * xmalloc(size_t sz)
void * xrealloc(void *s, size_t sz)
void * xcalloc(size_t n, size_t sz)
void free_const(const void *s)