lansd@utgpu.UUCP (09/25/87)
I am in the process of converting a new public domain file selector
written in Megamax C to MWC. The only major problem that I have encountered
is with structure initialization. The two structures being initialized are
the TED_INFO and OBJECT Resource structures (the program has the resource
file coded into the C file).
A fragment of the code follows...
char *rs_strings[] = {
"",
"CANCEL"
.
.
"FFF"};
TEDINFO rs_tedinfo[] = {
0L, rs_strings[10], rs_strings[13],3,0,0,0x1180,0,0,0,13,
.
.
.
}
OBJECT rs_objects[] = {
7,-1,-1,G_BUTTON, SELECTABLE, NORMAL, rs_strings[4]......
.
.
}
MWC displays the message "Initializer too complex" for the lines
in rs_tedinfo and rs_objects that reference the 'rs_strings' pointer array.
By replacing these referneces with long constants the code is accepted ok.
How do I get around this problem?