From 13c844fb71c9bc7031fdac50561938b62bb75bfd Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 20 Oct 2000 19:14:07 +0000 Subject: [PATCH] (toplevel): Conditionalize compilation of mem_* functions differently. --- src/ChangeLog | 5 +++++ src/alloc.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index fb359528697..e6ae01e40ab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-10-20 Gerd Moellmann + + * alloc.c (toplevel): Conditionalize compilation of mem_* + functions differently. + 2000-10-20 Jason Rumney * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above diff --git a/src/alloc.c b/src/alloc.c index 56b0d6fd16d..54c4b447fde 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -2530,7 +2530,8 @@ make_event_array (nargs, args) C Stack Marking ************************************************************************/ -#if GC_MARK_STACK +#if GC_MARK_STACK || defined GC_MALLOC_CHECK + /* Initialize this part of alloc.c. */ static void @@ -3074,6 +3075,10 @@ live_buffer_p (m, p) && !NILP (((struct buffer *) p)->name)); } +#endif /* GC_MARK_STACK || defined GC_MALLOC_CHECK */ + +#if GC_MARK_STACK + #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES /* Array of objects that are kept alive because the C stack contains -- 2.39.5