]> mj.ucw.cz Git - libucw.git/blobdiff - lib/realloc.c
Added REV_COMPARE(x,y) which is equivalent to COMPARE(y,x), but it's
[libucw.git] / lib / realloc.c
index 6829c71fb46b8588832c86bb75a45695bf3df6b4..536f61f9acce4714b53e9a43e6222b6e35ac67d0 100644 (file)
@@ -2,12 +2,17 @@
  *     Sherlock Library -- Memory Re-allocation
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
 
 #include <stdlib.h>
 
+#ifndef DEBUG_DMALLOC
+
 void *
 xrealloc(void *old, uns size)
 {
@@ -16,3 +21,5 @@ xrealloc(void *old, uns size)
     die("Cannot reallocate %d bytes of memory", size);
   return x;
 }
+
+#endif