47#ifndef PPM_XFUNCS_INCLUDED
48#define PPM_XFUNCS_INCLUDED
64#define xcalloc(nmemb,size) \
65 symprefix(xcalloc)((nmemb), (size), __FILE__, __LINE__)
66#define xmalloc(size) symprefix(xmalloc)((size), __FILE__, __LINE__)
67#define xrealloc(ptr,size) \
68 symprefix(xrealloc)((ptr), (size), __FILE__, __LINE__)
72 const char *source,
int line);
74#define xfopen(path, mode) symprefix(xfopen)(path, mode, __FILE__, __LINE__)
79#define xfclose(fp) symprefix(xfclose)(fp, __FILE__, __LINE__)
#define xrealloc(ptr, size)
#define xcalloc(nmemb, size)
#define xfopen(path, mode)
Define library-specific symbol prefix macros.
#define symprefix(symbol)