I saw that c99 was not supported on either compiler, compound literals error ...
Is it planned to allow it in the compiler (c99)? zcc -cpm ...
because I have to stop my project, I really need to initialize literals in a structure
unless you have an idea how to fix this:
Code: Select all
typedef struct
{
int x;
int y;
int nb_item;
int width_item_max;
int item_default;
int item_selected;
Color bg;
Color fg;
Color bg_sel;
Color fg_sel;
char **item_menu;
} MNU;
static MNU main_menu = {5, 5, 7, 20, 1, -1, Black, White, Cyan, Black,
(char*[]){
"System Color ",
"Test input ",
"Ascii chart ",
"Horizontal menu ",
"Submenu test demo > ",
"Test box frame ",
"Quit application ",
NULL
}
};