xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_nested_structs.c (revision d3d381b2b194b4d24853e92eecef55f262688d1a)
1 /* Nested struct */
2 typedef void *EditLine;
3 typedef void *History;
4 
5 typedef struct {
6 	EditLine	*el;
7 	History		*hist;
8 } el_mode_t;
9 
10 struct 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 
17 struct el_modes_s elm = {
18 	.command  = { .el = 0, .hist = 0, },
19 	.string   = { .el = 0, .hist = 0, },
20 	.filec    = { .el = 0, .hist = 0, },
21 };
22