Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/struct_literal.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct Bar Bar;
7
8 typedef struct {
9 int32_t a;
10 uint32_t b;
11 } Foo;
12 #define Foo_FOO (Foo){ .a = 42, .b = 47 }
13 #define Foo_FOO2 (Foo){ .a = 42, .b = 47 }
14 #define Foo_FOO3 (Foo){ .a = 42, .b = 47 }
15
16
17 #define BAR (Foo){ .a = 42, .b = 1337 }
18
19
20
21 void root(Foo x, Bar bar);