Mercurial > emacs
comparison src/alloc.c @ 32700:25c6c2562e31
(toplevel): Conditionalize compilation of mem_*
functions differently.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 20 Oct 2000 19:13:33 +0000 |
parents | 52f570fdddce |
children | 416924b6f303 |
comparison
equal
deleted
inserted
replaced
32699:52f570fdddce | 32700:25c6c2562e31 |
---|---|
2528 | 2528 |
2529 /************************************************************************ | 2529 /************************************************************************ |
2530 C Stack Marking | 2530 C Stack Marking |
2531 ************************************************************************/ | 2531 ************************************************************************/ |
2532 | 2532 |
2533 #if GC_MARK_STACK | 2533 #if GC_MARK_STACK || defined GC_MALLOC_CHECK |
2534 | |
2534 /* Initialize this part of alloc.c. */ | 2535 /* Initialize this part of alloc.c. */ |
2535 | 2536 |
2536 static void | 2537 static void |
2537 mem_init () | 2538 mem_init () |
2538 { | 2539 { |
3072 return (m->type == MEM_TYPE_BUFFER | 3073 return (m->type == MEM_TYPE_BUFFER |
3073 && p == m->start | 3074 && p == m->start |
3074 && !NILP (((struct buffer *) p)->name)); | 3075 && !NILP (((struct buffer *) p)->name)); |
3075 } | 3076 } |
3076 | 3077 |
3078 #endif /* GC_MARK_STACK || defined GC_MALLOC_CHECK */ | |
3079 | |
3080 #if GC_MARK_STACK | |
3081 | |
3077 #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES | 3082 #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES |
3078 | 3083 |
3079 /* Array of objects that are kept alive because the C stack contains | 3084 /* Array of objects that are kept alive because the C stack contains |
3080 a pattern that looks like a reference to them . */ | 3085 a pattern that looks like a reference to them . */ |
3081 | 3086 |