.cargo/vendor/cbindgen/tests/expectations/rename.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 | x = 0, |
| 10 | y = 1, |
| 11 | }; |
| 12 | typedef uint8_t C_E; |
| 13 | |
| 14 | typedef struct C_A C_A; |
| 15 | |
| 16 | typedef struct C_C C_C; |
| 17 | |
| 18 | typedef struct { |
| 19 | int32_t x; |
| 20 | float y; |
| 21 | } C_AwesomeB; |
| 22 | |
| 23 | typedef union { |
| 24 | int32_t x; |
| 25 | float y; |
| 26 | } C_D; |
| 27 | |
| 28 | typedef C_A C_F; |
| 29 | |
| 30 | #define C_I (intptr_t)(C_F*)10 |
| 31 | |
| 32 | extern const int32_t G; |
| 33 | |
| 34 | void root(const C_A *a, C_AwesomeB b, C_C c, C_D d, C_E e, C_F f); |