diff options
author | Sascha Schumann <sas@php.net> | 1999-09-18 12:13:48 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-09-18 12:13:48 +0000 |
commit | dbc6964fbb2e3fd8804af952af3dc98402f9be2b (patch) | |
tree | 32921344440a77e96cd8dd50df9474ced59b4536 /main/alloca.c | |
parent | 8dbbeaf55acd484dec7cf2a3590bb5521ed8bd96 (diff) | |
download | php-git-dbc6964fbb2e3fd8804af952af3dc98402f9be2b.tar.gz |
There is no reason to define malloc() to xmalloc() in this context.
Diffstat (limited to 'main/alloca.c')
-rw-r--r-- | main/alloca.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/main/alloca.c b/main/alloca.c index a520f2c834..7c6cd4f192 100644 --- a/main/alloca.c +++ b/main/alloca.c @@ -77,21 +77,6 @@ typedef char *pointer; #define NULL 0 #endif -/* 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. - - Non-Emacs programs expect this to call use xmalloc. - - Callers below should use malloc. */ - -#ifndef emacs -#define malloc xmalloc -#endif -extern pointer malloc (); - /* Define STACK_DIRECTION if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. @@ -169,7 +154,7 @@ static header *last_alloca_header = NULL; /* -> last alloca header. */ pointer alloca (size) - unsigned size; + size_t size; { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe); |