aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love <[email protected]>2000-08-17 14:01:09 +0000
committerDave Love <[email protected]>2000-08-17 14:01:09 +0000
commitb3303f74684a153fc48d2b1622760eca133ba0b2 (patch)
tree417b6bf99a1d92272277d292c0517dddaa66cad2 /src
parent29f4bda5cf9360df591f30c7391e71b14283d709 (diff)
(lisp_malloc): Declare with POINTER_TYPE.
[SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/alloc.c b/src/alloc.c
index b955c951ec..fa6a4c2394 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -286,7 +286,7 @@ enum mem_type
Lisp_Object Vdead;
struct mem_node;
-static void *lisp_malloc P_ ((size_t, enum mem_type));
+static POINTER_TYPE *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 *));
@@ -541,15 +541,15 @@ lisp_free (block)
GNU malloc. */
#ifndef SYSTEM_MALLOC
-
-extern void * (*__malloc_hook) ();
+#ifndef DOUG_LEA_MALLOC
+extern void * (*__malloc_hook) P_ ((size_t));
+extern void * (*__realloc_hook) P_ ((void *, size_t));
+extern void (*__free_hook) P_ ((void *));
+/* Else declared in malloc.h, perhaps with an extra arg. */
+#endif /* DOUG_LEA_MALLOC */
static void * (*old_malloc_hook) ();
-extern void * (*__realloc_hook) ();
static void * (*old_realloc_hook) ();
-extern void (*__free_hook) ();
static void (*old_free_hook) ();
-static void *emacs_blocked_malloc P_ ((size_t));
-static void *emacs_blocked_realloc P_ ((void *, size_t));
/* This function is used as the hook for free to call. */