aboutsummaryrefslogtreecommitdiffstats
path: root/xalloca.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-10-20 13:06:35 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-10-20 13:06:35 +0000
commitf328d08ca01fab2dab671307e4c35c9ff869d22e (patch)
tree5a6072e98cc8a9b78273dc26935d11e6b7f9891a /xalloca.c
parenta0c69e5b6d833291e7658113a2c7503cca72cd09 (diff)
downloadfetchmail-f328d08ca01fab2dab671307e4c35c9ff869d22e.tar.gz
fetchmail-f328d08ca01fab2dab671307e4c35c9ff869d22e.tar.bz2
fetchmail-f328d08ca01fab2dab671307e4c35c9ff869d22e.zip
Delete obsolete file xalloca.c, now a macro.
svn path=/trunk/; revision=3966
Diffstat (limited to 'xalloca.c')
-rw-r--r--xalloca.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/xalloca.c b/xalloca.c
deleted file mode 100644
index b9d8d545..00000000
--- a/xalloca.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * xalloca.c -- allocate space or die
- *
- * For license terms, see the file COPYING in this directory.
- */
-
-#include "config.h"
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#if defined(STDC_HEADERS)
-#include <stdlib.h>
-#endif
-#if defined(HAVE_ALLOCA_H)
-#include <alloca.h>
-#else
-#ifdef _AIX
-#pragma alloca
-#endif
-#endif
-
-#include "fetchmail.h"
-
-#if defined(HAVE_VOIDPOINTER)
-#define XALLOCATYPE void
-#else
-#define XALLOCATYPE char
-#endif
-
-XALLOCATYPE *
-#ifdef __STDC__
-xalloca (size_t n)
-#else
-xalloca (n)
-
-int n;
-#endif
-{
- XALLOCATYPE *p;
-
- p = (XALLOCATYPE *) alloca(n);
- if (p == (XALLOCATYPE *) 0)
- {
- report(stderr, GT_("alloca failed\n"));
- exit(PS_UNDEFINED);
- }
- return(p);
-}
-
-/* xalloca.c ends here */