Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/enum_self.both.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct Foo_Bar {
7 const int32_t *something;
8 } Foo_Bar;
9
10 enum Bar_Tag {
11 Min,
12 Max,
13 Other,
14 };
15 typedef uint8_t Bar_Tag;
16
17 typedef union Bar {
18 Bar_Tag tag;
19 struct {
20 Bar_Tag min_tag;
21 struct Foo_Bar min;
22 };
23 struct {
24 Bar_Tag max_tag;
25 struct Foo_Bar max;
26 };
27 } Bar;
28
29 void root(union Bar b);