Vin Shelton <acs(a)xemacs.org> wrot:
Without this fairly bogus patch, I cannot compile 21.4 on Cygwin (at
least using gcc-3.3.3).
Comments? Recommendations?
It isn't bogus. Embedded newlines in strings was a GCC extension (i.e.,
it is NOT standard C). Support for embedded newlines was removed in gcc
3.3. Your patch is both correct and necessary.
To improve readability, though, you can use line continuations, like
this:
"\nRequested %d bytes, static heap exhausted! base is %p, current ptr\n\
is %p. 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\
work then STATIC_HEAP_SLOP (defined in this file) is too small.\n\
\n\
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);
--
Jerry James
http://www.ittc.ku.edu/~james/