Commit bf952fb6 authored by Dave Love's avatar Dave Love
Browse files

[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.
parent 0cde1424
......@@ -43,7 +43,11 @@ Boston, MA 02111-1307, USA. */
#include "syssignal.h"
#include <setjmp.h>
extern char *sbrk ();
#include <unistd.h>
extern POINTER_TYPE *sbrk ();
......@@ -283,6 +287,7 @@ Lisp_Object Vdead;
struct mem_node;
static void *lisp_malloc P_ ((size_t, enum mem_type));
static void lisp_free P_ ((POINTER_TYPE *));
static void mark_stack P_ ((void));
static void init_stack P_ ((Lisp_Object *));
static int live_vector_p P_ ((struct mem_node *, void *));
......@@ -512,7 +517,7 @@ allocate_buffer ()
/* Free BLOCK. This must be called to free memory allocated with a
call to lisp_malloc. */
static void
lisp_free (block)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment