1/* Nested struct */
2typedef void *EditLine;
3typedef void *History;
4
5typedef struct {
6	EditLine	*el;
7	History		*hist;
8} el_mode_t;
9
10struct el_modes_s {
11	el_mode_t command;
12	el_mode_t string;
13	el_mode_t filec;
14	el_mode_t mime_enc;
15};
16
17struct el_modes_s elm = {
18	.command  = { .el = 0, .hist = 0, },
19	.string   = { .el = 0, .hist = 0, },
20	.filec    = { .el = 0, .hist = 0, },
21};
22