"[PATCH] - cppinit.c string length"
Henner Zeller
zeller@stud.fh-heilbronn.de
Mon Jul 3 18:05:00 GMT 2000
Hi,
On Mon, 3 Jul 2000, Donn Terry wrote:
DT| Some compilers choke on a single string that's too long. Break it up
DT| into ISO C (89) maximum size chunks. The compiler that ran into this
MSVC++ ? :-) .. sorry, couldn't resist ..
DT| could live with it broken into three chunks, and most others didn't notice
DT| at all, so this is probably more than strictly required. However, ZW asked
DT| for it to be minimal (509 characters (yup, five hundred and NINE, according
DT| to the standard!)), so 6 80 character lines is convieniently under that,
[...]
DT| fputs (_("\
DT| Switches:\n\
DT| -include <file> Include the contents of <file> before other
DT| files\n\
DT| @@ -1799,6 +1831,8 @@ Switches:\n\
if changing this to be more standard conforming anyway, why not doing it
the (IMHO) more readable way with
automatic C string concatenation instead of these awkward backslashified
strings. Something like
fputs(_("whatever ...)"
" -include ..... \n"
" -files .....\n"));
(stupid standards, btw, thank god, that they dont limit the maximum size
of pre-initilized arrays .. lex/yacc would have their problems :-)
ciao,
-hen
More information about the Gcc-patches
mailing list