# HG changeset patch # User Ben Wing # Date 1263359953 21600 # Node ID 17b3dc5500b04179d71fef4e6f728cb141030773 # Parent 5f1c6ca4d05e21c6983fa363625aa423de3571ae changes to get old non-pdump dumping on Cygwin to work (sort of) diff -r 5f1c6ca4d05e -r 17b3dc5500b0 src/ChangeLog --- a/src/ChangeLog Tue Jan 12 23:16:33 2010 -0600 +++ b/src/ChangeLog Tue Jan 12 23:19:13 2010 -0600 @@ -1,5 +1,13 @@ 2010-01-12 Ben Wing + * sheap.c: + * sheap.c (more_static_core): + Increase STATIC_HEAP_SLOP. + Change heap-exhausted error message to mention the computed + static heap size. + + * unexcw.c: Include syswindows.h to avoid compile error. + * file-coding.c (default_query_method): Single = is intended. Rewrite using comma operator to make this clearer and avoid dependency on the value of an enum. diff -r 5f1c6ca4d05e -r 17b3dc5500b0 src/sheap.c --- a/src/sheap.c Tue Jan 12 23:16:33 2010 -0600 +++ b/src/sheap.c Tue Jan 12 23:19:13 2010 -0600 @@ -27,7 +27,7 @@ #include #define STATIC_HEAP_BASE 0x800000 -#define STATIC_HEAP_SLOP 0x40000 +#define STATIC_HEAP_SLOP 0x80000 #define STATIC_HEAP_SIZE \ (STATIC_HEAP_BASE + SHEAP_ADJUSTMENT + STATIC_HEAP_SLOP) #define BLOCKSIZE (1<<12) @@ -84,7 +84,7 @@ { printf ( "\nRequested %d bytes, static heap exhausted! base is %p, current ptr\n" -"is %p. You have exhausted the static heap. \n" +"is %p, static heap size is %ld. You have exhausted the static heap. \n" "\n" "If you are simply trying to compile, remove sheap-adjust.h\n" "and recompile from the top level. If this doesn't\n" @@ -93,7 +93,7 @@ "If you want to run temacs, change SHEAP_ADJUSTMENT in sheap-adjust.h\n" "to 0 or a +ve number. Generally you should *not* try to run temacs\n" "with a static heap, you should dump first.\n", - size, static_heap_base, static_heap_ptr); + size, static_heap_base, static_heap_ptr, static_heap_size); exit(-1); return 0; diff -r 5f1c6ca4d05e -r 17b3dc5500b0 src/unexcw.c --- a/src/unexcw.c Tue Jan 12 23:16:33 2010 -0600 +++ b/src/unexcw.c Tue Jan 12 23:19:13 2010 -0600 @@ -27,6 +27,7 @@ #include "lisp.h" #include "sysfile.h" +#include "syswindows.h" #define PERROR(arg) \ do { \