cvs: /php4 alloca.c

From: Date: Sat, 18 Sep 1999 12:13:48 +0000
Subject: cvs: /php4 alloca.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4605@lists.php.net to get a copy of this message
sas Sat Sep 18 08:13:48 1999 EDT Modified files: /php4 alloca.c Log: There is no reason to define malloc() to xmalloc() in this context. Index: php4/alloca.c diff -u php4/alloca.c:1.2 php4/alloca.c:1.3 --- php4/alloca.c:1.2 Mon May 10 20:01:41 1999 +++ php4/alloca.c Sat Sep 18 08:13:48 1999 @@ -77,21 +77,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. @@ -169,7 +154,7 @@ pointer alloca (size) - unsigned size; + size_t size; { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe);

« previous php.version4 (#4605) next »