# HG changeset patch # User Dave Love # Date 969916136 0 # Node ID 2f3d88ac2b38b224b13bc8b979f79d6c02e5eaab # Parent d8d68cbd11135fe82eb309462d256f850f4dc017 (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it. (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t. (__malloc_extra_blocks): Declare as __malloc_size_t. diff -r d8d68cbd1113 -r 2f3d88ac2b38 src/alloc.c --- a/src/alloc.c Mon Sep 25 21:07:55 2000 +0000 +++ b/src/alloc.c Mon Sep 25 21:08:56 2000 +0000 @@ -52,7 +52,10 @@ #ifdef DOUG_LEA_MALLOC #include +/* malloc.h #defines this as size_t, at least in glibc2. */ +#ifndef __malloc_size_t #define __malloc_size_t int +#endif /* Specify maximum number of areas to mmap. It would be nice to use a value that explicitly means "no limit". */ @@ -63,14 +66,9 @@ /* The following come from gmalloc.c. */ -#if defined (STDC_HEADERS) -#include #define __malloc_size_t size_t -#else -#define __malloc_size_t unsigned int -#endif extern __malloc_size_t _bytes_used; -extern int __malloc_extra_blocks; +extern __malloc_size_t __malloc_extra_blocks; #endif /* not DOUG_LEA_MALLOC */ @@ -3769,7 +3767,7 @@ { mark_object (&img->spec); - if (!GC_NILP (img->data.lisp_val)) + if (!NILP (img->data.lisp_val)) mark_object (&img->data.lisp_val); }