summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-04-29 17:12:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-04-29 17:12:00 +0000
commit17ecedd391d8bdb019c949a18d4a09895b1302dd (patch)
tree3f5ff5ceee7c69d2bcc4224d0e09a4cf7af88550 /lib.h
parentb15772057ed7fb5275b31ab170e0cbe8c358a951 (diff)
Fix #1171.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 7b6b3ac8..0b66ddfd 100644
--- a/lib.h
+++ b/lib.h
@@ -75,11 +75,18 @@
# define MUTT_FORMAT(a) _MUTT_FORMAT_1(a, "s")
# define MUTT_FORMAT2(a,b) _MUTT_FORMAT_1(a, b)
+
# define FREE(x) safe_free((void **)x)
# define NONULL(x) x?x:""
# define ISSPACE(c) isspace((unsigned char)c)
# define strfcpy(A,B,C) strncpy(A,B,C), *(A+(C)-1)=0
+# undef MAX
+# undef MIN
+# define MAX(a,b) ((a) < (b) ? (b) : (a))
+# define MIN(a,b) ((a) < (b) ? (a) : (b))
+
+
#define FOREVER while (1)
/* this macro must check for *c == 0 since isspace(0) has unreliable behavior