cvs: /php3 alloca.c

From: Date: Sun, 26 Sep 1999 15:33:01 +0000
Subject: cvs: /php3 alloca.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-11308@lists.php.net to get a copy of this message
sas Sun Sep 26 11:33:01 1999 EDT Modified files: /php3 alloca.c Log: Backport php4 version. Index: php3/alloca.c diff -u php3/alloca.c:1.3 php3/alloca.c:1.4 --- php3/alloca.c:1.3 Mon Dec 28 04:34:42 1998 +++ php3/alloca.c Sun Sep 26 11:33:01 1999 @@ -21,7 +21,7 @@ allocating any. It is a good idea to use alloca(0) in your main control loop, etc. to force garbage collection. */ -/* $Id: alloca.c,v 1.3 1998/12/28 09:34:42 sas Exp $ */ +/* $Id: alloca.c,v 1.4 1999/09/26 15:33:01 sas Exp $ */ #include <config.h> @@ -79,21 +79,6 @@ #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. @@ -171,7 +156,7 @@ pointer alloca (size) - unsigned size; + size_t size; { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe);

« previous php.dev (#11308) next »