.cargo/vendor/cbindgen/tests/expectations/alias.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | enum Status { |
| 7 | Ok, |
| 8 | Err, |
| 9 | }; |
| 10 | typedef uint32_t Status; |
| 11 | |
| 12 | typedef struct { |
| 13 | int32_t a; |
| 14 | float b; |
| 15 | } Dep; |
| 16 | |
| 17 | typedef struct { |
| 18 | int32_t a; |
| 19 | int32_t b; |
| 20 | Dep c; |
| 21 | } Foo_i32; |
| 22 | |
| 23 | typedef Foo_i32 IntFoo; |
| 24 | |
| 25 | typedef struct { |
| 26 | double a; |
| 27 | double b; |
| 28 | Dep c; |
| 29 | } Foo_f64; |
| 30 | |
| 31 | typedef Foo_f64 DoubleFoo; |
| 32 | |
| 33 | typedef int32_t Unit; |
| 34 | |
| 35 | typedef Status SpecialStatus; |
| 36 | |
| 37 | void root(IntFoo x, DoubleFoo y, Unit z, SpecialStatus w); |