# include <config.h>
#endif
+#if HAVE_STRING_H
+# include <string.h>
+#endif
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
#ifdef emacs
# include "blockinput.h"
#endif
Callers below should use malloc. */
# ifndef emacs
+# undef malloc
# define malloc xmalloc
# endif
extern pointer malloc ();
implementations of C, for example under Gould's UTX/32. */
pointer
-alloca (unsigned size)
+alloca (size_t size)
{
auto char probe; /* Probes stack depth: */
register char *depth = ADDRESS_FUNCTION (probe);
register pointer new = malloc (sizeof (header) + size);
/* Address of header. */
+ if (new == 0)
+ abort();
+
((header *) new)->h.next = last_alloca_header;
((header *) new)->h.deep = depth;