changeset 48432:93b2c8968d5c

Don't include alloca.h, stdlib.h. Don't declare malloc, realloc, calloc.
author Dave Love <fx@gnu.org>
date Mon, 18 Nov 2002 16:27:08 +0000
parents 8aeaf7d166dd
children 5ae42f289101
files src/m/ia64.h
diffstat 1 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/m/ia64.h	Mon Nov 18 16:24:41 2002 +0000
+++ b/src/m/ia64.h	Mon Nov 18 16:27:08 2002 +0000
@@ -133,30 +133,6 @@
 #define XINT(a)  (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
 #define XUINT(a) ((long) (a) & VALMASK)
 
-/* Declare malloc and realloc in a way that is clean.
-   But not in makefiles!  */
-
-#ifndef NOT_C_CODE
-/* We need these because pointers are larger than the default ints.  */
-# if !defined(__NetBSD__) && !defined(__OpenBSD__)
-#  include <alloca.h>
-# else
-#  include <stdlib.h>
-# endif
-
-/* We need to prototype these for the lib-src programs even if we don't
-   use the system malloc for the Emacs proper.  */
-#ifdef _MALLOC_INTERNAL
-/* These declarations are designed to match the ones in gmalloc.c.  */
-#if defined (__STDC__) && __STDC__
-extern void *malloc (), *realloc (), *calloc ();
-#else
-extern char *malloc (), *realloc (), *calloc ();
-#endif
-#else /* not _MALLOC_INTERNAL */
-extern void *malloc (), *realloc (), *calloc ();
-#endif /* not _MALLOC_INTERNAL */
-
 #ifdef REL_ALLOC
 #ifndef _MALLOC_INTERNAL
 /* "char *" because ralloc.c defines it that way.  gmalloc.c thinks it