X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Frealloc.c;h=6d6b0baf2304b933602f33db7e24cd2ff7a6b033;hb=7029240def9f0a2ff4e8bbeb2835c59e8ef6d463;hp=817f035c92175b1a403d703cde1a72811c78c6f3;hpb=34289767d57bb8845699c819362d286bd51c8952;p=libucw.git diff --git a/lib/realloc.c b/lib/realloc.c index 817f035c..6d6b0baf 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,18 +1,22 @@ /* - * Sherlock Library -- Memory Re-allocation + * UCW Library -- Memory Re-allocation * * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" #include -#ifndef DMALLOC +#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);