X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Frealloc.c;h=6d6b0baf2304b933602f33db7e24cd2ff7a6b033;hb=ab3b3f178718c0ae7b5738e987e350537574d2e6;hp=3ee75aa8c3caeb983259c43b1ff19bf785e60cf5;hpb=5b53087fa5a07ff89d34cf3bf3bc1b28809f05c2;p=libucw.git diff --git a/lib/realloc.c b/lib/realloc.c index 3ee75aa8..6d6b0baf 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,19 +1,26 @@ /* - * Sherlock Library -- Memory Re-allocation + * UCW Library -- Memory Re-allocation * - * (c) 1997 Martin Mares, + * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ -#include +#include "lib/lib.h" + #include -#include "lib/lib.h" +#ifndef DEBUG_DMALLOC void * xrealloc(void *old, uns size) { + /* We assume that realloc(NULL, x) works like malloc(x), which is true with the glibc. */ void *x = realloc(old, size); if (!x) die("Cannot reallocate %d bytes of memory", size); return x; } + +#endif