comparison src/sheap.c @ 286:57709be46d1b r21-0b41

Import from CVS: tag r21-0b41
author cvs
date Mon, 13 Aug 2007 10:35:03 +0200
parents 7df0dd720c89
children 74fd4e045ea6
comparison
equal deleted inserted replaced
285:9a3756523c1b 286:57709be46d1b
81 if (static_heap_ptr + size >= static_heap_base + static_heap_size) 81 if (static_heap_ptr + size >= static_heap_base + static_heap_size)
82 { 82 {
83 printf( 83 printf(
84 84
85 "\nRequested %d bytes, static heap exhausted! base is %p, current ptr 85 "\nRequested %d bytes, static heap exhausted! base is %p, current ptr
86 is %p. You have exhausted the static heap, if you want to run temacs, 86 is %p. You have exhausted the static heap.
87 adjust sheap-adjust.h to 0 or a +ve number. If you are dumping then 87
88 STATIC_HEAP_SLOP is too small. Generally you should *not* try to run 88 If you are simply trying to compile, remove sheap-adjust.h and
89 temacs with a static heap, you should dump first.\n", size, 89 puresize-adjust.h and recompile from the top level. If this doesn't
90 work then STATIC_HEAP_SLOP (defined in this file) is too small.
91
92 If you want to run temacs, change SHEAP_ADJUSTMENT in sheap-adjust.h
93 to 0 or a +ve number. Generally you should *not* try to run temacs
94 with a static heap, you should dump first.\n", size,
90 static_heap_base, static_heap_ptr); 95 static_heap_base, static_heap_ptr);
91 96
92 exit(-1); 97 exit(-1);
93 return 0; 98 return 0;
94 } 99 }