+2000-09-25 Dave Love <fx@gnu.org>
+
+ * buffer.c: Include stdio.h.
+
+ Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
+
+ * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
+
+ * alloc.c (__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.
+
2000-09-25 Gerd Moellmann <gerd@gnu.org>
* alloc.c (mark_image): Use GC_NILP instead of NILP.
#ifdef DOUG_LEA_MALLOC
#include <malloc.h>
+/* 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". */
/* The following come from gmalloc.c. */
-#if defined (STDC_HEADERS)
-#include <stddef.h>
#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 */
{
mark_object (&img->spec);
- if (!GC_NILP (img->data.lisp_val))
+ if (!NILP (img->data.lisp_val))
mark_object (&img->data.lisp_val);
}