aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2000-08-14 14:15:44 +0000
committerDave Love2000-08-14 14:15:44 +0000
commitbf952fb6449772186914a0324732782bc2900d48 (patch)
tree162084d2df2cca1962b25b1946ecee6a236bdfb8 /src
parent0cde14243fa27e86a14ba4069f858149f20f2537 (diff)
downloademacs-bf952fb6449772186914a0324732782bc2900d48.tar.gz
emacs-bf952fb6449772186914a0324732782bc2900d48.zip
[HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
[!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk. (lisp_free): Declare and make static.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index b7c61b4bd07..497c01c707d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -43,7 +43,11 @@ Boston, MA 02111-1307, USA. */
43#include "syssignal.h" 43#include "syssignal.h"
44#include <setjmp.h> 44#include <setjmp.h>
45 45
46extern char *sbrk (); 46#ifdef HAVE_UNISTD_H
47#include <unistd.h>
48#else
49extern POINTER_TYPE *sbrk ();
50#endif
47 51
48#ifdef DOUG_LEA_MALLOC 52#ifdef DOUG_LEA_MALLOC
49 53
@@ -283,6 +287,7 @@ Lisp_Object Vdead;
283 287
284struct mem_node; 288struct mem_node;
285static void *lisp_malloc P_ ((size_t, enum mem_type)); 289static void *lisp_malloc P_ ((size_t, enum mem_type));
290static void lisp_free P_ ((POINTER_TYPE *));
286static void mark_stack P_ ((void)); 291static void mark_stack P_ ((void));
287static void init_stack P_ ((Lisp_Object *)); 292static void init_stack P_ ((Lisp_Object *));
288static int live_vector_p P_ ((struct mem_node *, void *)); 293static int live_vector_p P_ ((struct mem_node *, void *));
@@ -512,7 +517,7 @@ allocate_buffer ()
512/* Free BLOCK. This must be called to free memory allocated with a 517/* Free BLOCK. This must be called to free memory allocated with a
513 call to lisp_malloc. */ 518 call to lisp_malloc. */
514 519
515void 520static void
516lisp_free (block) 521lisp_free (block)
517 POINTER_TYPE *block; 522 POINTER_TYPE *block;
518{ 523{