Article View: gnu.bash.bug
Article #734SVr3.2.1 chokes on long string constants
From: Lyndon Nerenberg
Date: Wed, 15 Nov 1989 22:45
Date: Wed, 15 Nov 1989 22:45
35 lines
1306 bytes
1306 bytes
When compiling 1.04 under SVr3.2.1 on a 3b2/600, cc dies in
builtins.c. The error messages are:
builtins.c: 290: token too long
builtins.c: 341: token too long
Both of these lines are inside of some rather long string
constants in the internal help messages. I can't think of
an immediate solution other than changing the format of the
structs in question to make the help text a null terminated
sequence of individual lines within the struct. Something like:
struct builtin {
char *name;
Function *function;
int enabled;
char *short_doc;
char *long_doc[];
} = {
"foo", foo, 1, "short desc",
"line 1 of long desc",
"line 2 of long desc",
(char *)0; /* end of text flag */
}
which breaks everything if these have to be copied around, although
I doubt that's the case.
--
Lyndon Nerenberg VE6BBM / Computing Services / Athabasca University
{alberta,decwrl,lsuc}!atha!lyndon || lyndon@cs.AthabascaU.CA
The Connector is the Notwork.
Technical Details
Message-ID:
<1242@atha.AthabascaU.CA>Path:
arc1-ca.pugleaf.net!utzoo!telly!philmtl!atha!lyndonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!atha!lyndon From: lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) Newsgroups: gnu.bash.bug Subject: SVr3.2.1 chokes on long string constants Message-ID: <1242@atha.AthabascaU.CA> Date: 15 Nov 89 22:45:29 GMT Distribution: gnu Organization: Athabasca University Lines: 35