summaryrefslogtreecommitdiff
path: root/src/tinyproxy.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tinyproxy.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tinyproxy.h b/src/tinyproxy.h
index 5ca4f18..28a1ff0 100644
--- a/src/tinyproxy.h
+++ b/src/tinyproxy.h
@@ -1,4 +1,4 @@
-/* $Id: tinyproxy.h,v 1.5 2000-09-14 16:41:20 rjkaes Exp $
+/* $Id: tinyproxy.h,v 1.6 2000-09-26 04:58:35 rjkaes Exp $
*
* See 'tinyproxy.c' for a detailed description.
*
@@ -69,6 +69,12 @@
#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) > (b) ? (a) : (b))
+#ifndef NDEBUG
+# define safefree(x) do { free(x); x = NULL; } while (0)
+#else
+# define safefree(x) free(x)
+#endif
+
/* Make a new type: bool_t */
typedef enum {
FALSE = 0,