Debian Codegraph @

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

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct Inner_1 {
7 uint8_t bytes[1];
8 } Inner_1;
9
10 typedef struct Outer_1 {
11 struct Inner_1 inner;
12 } Outer_1;
13
14 typedef struct Inner_2 {
15 uint8_t bytes[2];
16 } Inner_2;
17
18 typedef struct Outer_2 {
19 struct Inner_2 inner;
20 } Outer_2;
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif // __cplusplus
25
26 struct Outer_1 one(void);
27
28 struct Outer_2 two(void);
29
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif // __cplusplus