Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/struct.both.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct Opaque Opaque;
7
8 typedef struct Normal {
9 int32_t x;
10 float y;
11 } Normal;
12
13 typedef struct NormalWithZST {
14 int32_t x;
15 float y;
16 } NormalWithZST;
17
18 typedef struct TupleRenamed {
19 int32_t m0;
20 float m1;
21 } TupleRenamed;
22
23 typedef struct TupleNamed {
24 int32_t x;
25 float y;
26 } TupleNamed;
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif // __cplusplus
31
32 void root(struct Opaque *a,
33 struct Normal b,
34 struct NormalWithZST c,
35 struct TupleRenamed d,
36 struct TupleNamed e);
37
38 #ifdef __cplusplus
39 } // extern "C"
40 #endif // __cplusplus