]> mj.ucw.cz Git - libucw.git/blobdiff - lib/realloc.c
- lizard_alloc() turns on the wrapper for SIGSEGV and lizard_free() restores
[libucw.git] / lib / realloc.c
index 3ee75aa8c3caeb983259c43b1ff19bf785e60cf5..536f61f9acce4714b53e9a43e6222b6e35ac67d0 100644 (file)
@@ -1,13 +1,17 @@
 /*
  *     Sherlock Library -- Memory Re-allocation
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (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 <stdio.h>
+#include "lib/lib.h"
+
 #include <stdlib.h>
 
-#include "lib/lib.h"
+#ifndef DEBUG_DMALLOC
 
 void *
 xrealloc(void *old, uns size)
@@ -17,3 +21,5 @@ xrealloc(void *old, uns size)
     die("Cannot reallocate %d bytes of memory", size);
   return x;
 }
+
+#endif