Debian Codegraph @

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

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct ABC {
7 float a;
8 uint32_t b;
9 uint32_t c;
10 } ABC;
11 #define ABC_abc (ABC){ .a = 1.0, .b = 2, .c = 3 }
12 #define ABC_bac (ABC){ .a = 1.0, .b = 2, .c = 3 }
13 #define ABC_cba (ABC){ .a = 1.0, .b = 2, .c = 3 }
14
15 typedef struct BAC {
16 uint32_t b;
17 float a;
18 int32_t c;
19 } BAC;
20 #define BAC_abc (BAC){ .b = 1, .a = 2.0, .c = 3 }
21 #define BAC_bac (BAC){ .b = 1, .a = 2.0, .c = 3 }
22 #define BAC_cba (BAC){ .b = 1, .a = 2.0, .c = 3 }
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif // __cplusplus
27
28 void root(struct ABC a1, struct BAC a2);
29
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif // __cplusplus