comparison src/m/ia64.h @ 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 4be8406ebef9
children f7af55ac271c
comparison
equal deleted inserted replaced
48431:8aeaf7d166dd 48432:93b2c8968d5c
131 /* Define XINT and XUINT so that they can take arguments of type int */ 131 /* Define XINT and XUINT so that they can take arguments of type int */
132 132
133 #define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS)) 133 #define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
134 #define XUINT(a) ((long) (a) & VALMASK) 134 #define XUINT(a) ((long) (a) & VALMASK)
135 135
136 /* Declare malloc and realloc in a way that is clean.
137 But not in makefiles! */
138
139 #ifndef NOT_C_CODE
140 /* We need these because pointers are larger than the default ints. */
141 # if !defined(__NetBSD__) && !defined(__OpenBSD__)
142 # include <alloca.h>
143 # else
144 # include <stdlib.h>
145 # endif
146
147 /* We need to prototype these for the lib-src programs even if we don't
148 use the system malloc for the Emacs proper. */
149 #ifdef _MALLOC_INTERNAL
150 /* These declarations are designed to match the ones in gmalloc.c. */
151 #if defined (__STDC__) && __STDC__
152 extern void *malloc (), *realloc (), *calloc ();
153 #else
154 extern char *malloc (), *realloc (), *calloc ();
155 #endif
156 #else /* not _MALLOC_INTERNAL */
157 extern void *malloc (), *realloc (), *calloc ();
158 #endif /* not _MALLOC_INTERNAL */
159
160 #ifdef REL_ALLOC 136 #ifdef REL_ALLOC
161 #ifndef _MALLOC_INTERNAL 137 #ifndef _MALLOC_INTERNAL
162 /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it 138 /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
163 is allowed to prototype these as "void *" so we don't prototype in 139 is allowed to prototype these as "void *" so we don't prototype in
164 that case. You're right: it stinks! */ 140 that case. You're right: it stinks! */