aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2009-08-05 16:27:47 +0000
committerMatthias Andree <matthias.andree@gmx.de>2009-08-05 16:27:47 +0000
commitc8f608f4c4c6d2eb6cb7b12cb60de04cadcb3750 (patch)
tree99b131162e6c7b1d87ea295ed09b1fbeb6ffd66f /xmalloc.h
parent62acd57d67fff935e1c8a1796853e911869ee9f8 (diff)
downloadfetchmail-c8f608f4c4c6d2eb6cb7b12cb60de04cadcb3750.tar.gz
fetchmail-c8f608f4c4c6d2eb6cb7b12cb60de04cadcb3750.tar.bz2
fetchmail-c8f608f4c4c6d2eb6cb7b12cb60de04cadcb3750.zip
Add sdump(), split xmalloc.h out of fetchmail.h
svn path=/branches/BRANCH_6-3/; revision=5390
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
new file mode 100644
index 00000000..e1865013
--- /dev/null
+++ b/xmalloc.h
@@ -0,0 +1,19 @@
+/* xmalloc.h -- split out of fetchmail.h */
+
+#ifndef XMALLOC_H
+#define XMALLOC_H
+
+#include "config.h"
+
+/* xmalloc.c */
+#if defined(HAVE_VOIDPOINTER)
+#define XMALLOCTYPE void
+#else
+#define XMALLOCTYPE char
+#endif
+XMALLOCTYPE *xmalloc(size_t);
+XMALLOCTYPE *xrealloc(/*@null@*/ XMALLOCTYPE *, size_t);
+#define xfree(p) { if (p) { free(p); } (p) = 0; }
+char *xstrdup(const char *);
+
+#endif