diff options
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -80,16 +80,19 @@ typedef int Comparison; #define reallocarray(p, n, s) realloc(p, (n) * (s)) #endif -extern Opaque uRecalloc(Opaque /* old */ , - unsigned /* nOld */ , - unsigned /* nNew */ , - unsigned /* newSize */ +#ifndef HAVE_RECALLOCARRAY +#define recallocarray uRecalloc + +extern void *uRecalloc(void * /* old */ , + size_t /* nOld */ , + size_t /* nNew */ , + size_t /* newSize */ ); +#endif + extern void uFree(Opaque /* ptr */ ); -#define uTypedRecalloc(pO,o,n,t) ((t *)uRecalloc((Opaque)pO,((unsigned)o),((unsigned)n),sizeof(t))) - /***====================================================================***/ extern Boolean uSetErrorFile(char * /* name */ |