Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Lyndon Nerenberg
Wed, 15 Nov 1989 22:45
SVr3.2.1 chokes on long string constants
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads