repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/protocols - sync with NetBSD-8
[minix.git]
/
tests
/
usr.bin
/
xlint
/
lint1
/
d_nested_structs.c
blob
edd3396bd22459a9701bd52bd4418f851ff67763
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
};