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