47 #define xrealloc(o, x) xrealloc_f(o, x, __FILE__, __LINE__)
49 #define xmalloc(x) xmalloc_f(x, __FILE__, __LINE__)
51 #define xcalloc(x,y) xcalloc_f(x,y, __FILE__, __LINE__)
53 #define xfree(x) xfree_f(x, __FILE__, __LINE__)
55 #define xstrdup(s) xstrdup_f(s, __FILE__, __LINE__)
57 #define xstrndup(s, n) xstrndup_f(s, n, __FILE__, __LINE__)
59 #define xmalloc_trav(s) xmalloc_trav_f(s, __FILE__, __LINE__)
72 YAZ_EXPORT
void *
xrealloc_f(
void *o,
size_t size,
const char *file,
int line);
82 YAZ_EXPORT
void *
xmalloc_f(
size_t size,
const char *file,
int line);
94 YAZ_EXPORT
void *
xcalloc_f(
size_t nmemb,
size_t size,
95 const char *file,
int line);
105 YAZ_EXPORT
char *
xstrdup_f(
const char *p,
const char *file,
int line);
117 YAZ_EXPORT
char *
xstrndup_f(
const char *p,
size_t n,
118 const char *file,
int line);
128 YAZ_EXPORT
void xfree_f(
void *p,
const char *file,
int line);
139 YAZ_EXPORT
void xmalloc_trav_f(
const char *s,
const char *file,
int line);
char * xstrdup_f(const char *p, const char *file, int line)
strdup
char * xstrndup_f(const char *p, size_t n, const char *file, int line)
strndup
void * xrealloc_f(void *o, size_t size, const char *file, int line)
realloc
void xmalloc_trav_f(const char *s, const char *file, int line)
logs all xmalloc buffers
void xfree_f(void *p, const char *file, int line)
free
void * xcalloc_f(size_t nmemb, size_t size, const char *file, int line)
calloc
void * xmalloc_f(size_t size, const char *file, int line)
malloc
Header with fundamental macros.