Mercurial > hg > xemacs-beta
comparison src/gmalloc.c @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | 74fd4e045ea6 |
children | b8cc9ab3f761 |
comparison
equal
deleted
inserted
replaced
403:9f011ab08d48 | 404:2f8bb876ab1d |
---|---|
365 #define _MALLOC_INTERNAL | 365 #define _MALLOC_INTERNAL |
366 #include <malloc.h> | 366 #include <malloc.h> |
367 #endif | 367 #endif |
368 | 368 |
369 /* How to really get more memory. */ | 369 /* How to really get more memory. */ |
370 #ifdef HEAP_IN_DATA | 370 #if defined (HEAP_IN_DATA) && !defined(PDUMP) |
371 /* once dumped, free() & realloc() on static heap space will fail */ | 371 /* once dumped, free() & realloc() on static heap space will fail */ |
372 #define PURE_DATA(x) \ | 372 #define PURE_DATA(x) \ |
373 ((static_heap_dumped && (char*)x >= static_heap_base \ | 373 ((static_heap_dumped && (char*)x >= static_heap_base \ |
374 && (char*)x <= (static_heap_base + static_heap_size) ) ? 1 : 0) | 374 && (char*)x <= (static_heap_base + static_heap_size) ) ? 1 : 0) |
375 extern int initialized; | 375 extern int initialized; |
444 /* Set everything up and remember that we have. */ | 444 /* Set everything up and remember that we have. */ |
445 static int initialize __P ((void)); | 445 static int initialize __P ((void)); |
446 static int | 446 static int |
447 initialize () | 447 initialize () |
448 { | 448 { |
449 #ifdef HEAP_IN_DATA | 449 #if defined (HEAP_IN_DATA) && !defined(PDUMP) |
450 if (static_heap_dumped && __morecore == more_static_core) | 450 if (static_heap_dumped && __morecore == more_static_core) |
451 { | 451 { |
452 __morecore = __default_morecore; | 452 __morecore = __default_morecore; |
453 } | 453 } |
454 #endif | 454 #endif |