summaryrefslogtreecommitdiff
path: root/src/alloca.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-24 15:57:15 +0000
committerJim Blandy <jimb@redhat.com>1993-05-24 15:57:15 +0000
commit6a7a4c074e3f5502c3852b010c74f19a99d6081a (patch)
tree3d5dd1360de5c34002183b4c077fd5963efbb2bd /src/alloca.c
parent9ff5de0791b4ed4fb2ed11f7c27002763e974d91 (diff)
downloademacs-6a7a4c074e3f5502c3852b010c74f19a99d6081a.tar.gz
*** empty log message ***
Diffstat (limited to 'src/alloca.c')
-rw-r--r--src/alloca.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/alloca.c b/src/alloca.c
index bc34529fdd2..30efa5ae663 100644
--- a/src/alloca.c
+++ b/src/alloca.c
@@ -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.