*** empty log message ***
authorJim Blandy <jimb@gcc.gnu.org>
Mon, 24 May 1993 15:57:15 +0000 (15:57 +0000)
committerJim Blandy <jimb@gcc.gnu.org>
Mon, 24 May 1993 15:57:15 +0000 (15:57 +0000)
From-SVN: r4558

gcc/alloca.c

index bc34529fdd296718f3768e0971a2522d646fcae0..30efa5ae663f449a6cda796114112c05945d6377 100644 (file)
@@ -60,6 +60,17 @@ typedef char *pointer;
 
 #define        NULL    0
 
+/* Different portions of Emacs need to call different versions of
+   malloc.  The Emacs executable needs alloca to call xmalloc, because
+   ordinary malloc isn't protected from input signals.  On the other
+   hand, the utilities in lib-src need alloca to call malloc; some of
+   them are very simple, and don't have an xmalloc routine.
+
+   Everybody else should just call malloc.  */
+#ifndef emacs
+extern pointer malloc ();
+#endif
+
 /* Define STACK_DIRECTION if you know the direction of stack
    growth for your system; otherwise it will be automatically
    deduced at run-time.