]> Pileus Git - ~andy/fetchmail/commitdiff
Delete obsolete file xalloca.c, now a macro.
authorMatthias Andree <matthias.andree@gmx.de>
Wed, 20 Oct 2004 13:06:35 +0000 (13:06 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Wed, 20 Oct 2004 13:06:35 +0000 (13:06 -0000)
svn path=/trunk/; revision=3966

po/POTFILES.in
xalloca.c [deleted file]

index 94c6aade558cde05dd9b722ee625ce380d051bc7..3290022ec826c061e8296f2c08cd01ceacf5cbd9 100644 (file)
@@ -27,5 +27,4 @@ smtp.c
 socket.c
 transact.c
 uid.c
-xalloca.c
 xmalloc.c
diff --git a/xalloca.c b/xalloca.c
deleted file mode 100644 (file)
index b9d8d54..0000000
--- 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 */