X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fgmalloc.c;h=dd0f948280caa82a8f38b3ccadab200fe43fb099;hb=4f29597e4f3696a59bb08ffece07183c1568c4a5;hp=472bd3f9dedd8ba5aa2542c1a8201bec91cd20fd;hpb=3e447015251ce6dcde843cbed10d9033d5538622;p=chise%2Fxemacs-chise.git- diff --git a/src/gmalloc.c b/src/gmalloc.c index 472bd3f..dd0f948 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -367,7 +367,7 @@ Boston, MA 02111-1307, USA. #endif /* How to really get more memory. */ -#ifdef HEAP_IN_DATA +#if defined (HEAP_IN_DATA) && !defined(PDUMP) /* once dumped, free() & realloc() on static heap space will fail */ #define PURE_DATA(x) \ ((static_heap_dumped && (char*)x >= static_heap_base \ @@ -446,7 +446,7 @@ static int initialize __P ((void)); static int initialize () { -#ifdef HEAP_IN_DATA +#if defined (HEAP_IN_DATA) && !defined(PDUMP) if (static_heap_dumped && __morecore == more_static_core) { __morecore = __default_morecore; @@ -1036,7 +1036,7 @@ realloc (__ptr_t ptr, __malloc_size_t size) int type; __malloc_size_t block, blocks, oldlimit; - if (PURE_DATA(ptr)) + if (PURE_DATA (ptr)) { result = malloc (size); memcpy(result, ptr, size);