Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/rename.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 #define C_H 10
7
8 enum C_E
9 #ifdef __cplusplus
10 : uint8_t
11 #endif // __cplusplus
12 {
13 x = 0,
14 y = 1,
15 };
16 #ifndef __cplusplus
17 typedef uint8_t C_E;
18 #endif // __cplusplus
19
20 typedef struct C_A C_A;
21
22 typedef struct C_C C_C;
23
24 typedef struct {
25 int32_t x;
26 float y;
27 } C_AwesomeB;
28
29 typedef union {
30 int32_t x;
31 float y;
32 } C_D;
33
34 typedef C_A C_F;
35
36 #define C_I (intptr_t)(C_F*)10
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif // __cplusplus
41
42 extern const int32_t G;
43
44 void root(const C_A *a, C_AwesomeB b, C_C c, C_D d, C_E e, C_F f);
45
46 #ifdef __cplusplus
47 } // extern "C"
48 #endif // __cplusplus