]>
Commit | Line | Data |
---|---|---|
54c7a7f3 NC |
1 | struct var_len |
2 | { | |
3 | int field1; | |
4 | const char field2[]; | |
5 | }; | |
6 | ||
7 | /* Note - strictly speaking this array declaration is illegal | |
8 | since each element has a variable length. GCC allows it | |
9 | (for the moment) because it is used in existing code, such | |
10 | as glibc. */ | |
11 | static const struct var_len var_array[] = | |
12 | { | |
13 | { 1, "Long exposure noise reduction" }, | |
14 | { 2, "Shutter/AE lock buttons" }, | |
15 | { 3, "Mirror lockup" } | |
16 | }; |