aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDave Love2000-09-25 21:09:14 +0000
committerDave Love2000-09-25 21:09:14 +0000
commit3e60b029bc9d8e909114144e6362a62b19d164dc (patch)
tree64ac758a355b86cd969f134c8f22f2e5f3711fe7 /src/alloc.c
parentb1685c5fea6f6d07b7341329acf7489437f6a60e (diff)
downloademacs-3e60b029bc9d8e909114144e6362a62b19d164dc.tar.gz
emacs-3e60b029bc9d8e909114144e6362a62b19d164dc.zip
(__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.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 5f08cd07d81..eaf883a7821 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -52,7 +52,10 @@ extern POINTER_TYPE *sbrk ();
52#ifdef DOUG_LEA_MALLOC 52#ifdef DOUG_LEA_MALLOC
53 53
54#include <malloc.h> 54#include <malloc.h>
55/* malloc.h #defines this as size_t, at least in glibc2. */
56#ifndef __malloc_size_t
55#define __malloc_size_t int 57#define __malloc_size_t int
58#endif
56 59
57/* Specify maximum number of areas to mmap. It would be nice to use a 60/* Specify maximum number of areas to mmap. It would be nice to use a
58 value that explicitly means "no limit". */ 61 value that explicitly means "no limit". */
@@ -63,14 +66,9 @@ extern POINTER_TYPE *sbrk ();
63 66
64/* The following come from gmalloc.c. */ 67/* The following come from gmalloc.c. */
65 68
66#if defined (STDC_HEADERS)
67#include <stddef.h>
68#define __malloc_size_t size_t 69#define __malloc_size_t size_t
69#else
70#define __malloc_size_t unsigned int
71#endif
72extern __malloc_size_t _bytes_used; 70extern __malloc_size_t _bytes_used;
73extern int __malloc_extra_blocks; 71extern __malloc_size_t __malloc_extra_blocks;
74 72
75#endif /* not DOUG_LEA_MALLOC */ 73#endif /* not DOUG_LEA_MALLOC */
76 74
@@ -3769,7 +3767,7 @@ mark_image (img)
3769{ 3767{
3770 mark_object (&img->spec); 3768 mark_object (&img->spec);
3771 3769
3772 if (!GC_NILP (img->data.lisp_val)) 3770 if (!NILP (img->data.lisp_val))
3773 mark_object (&img->data.lisp_val); 3771 mark_object (&img->data.lisp_val);
3774} 3772}
3775 3773