.cargo/vendor/cbindgen/tests/expectations/monomorph_2.both.compat.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | typedef struct A A; |
| 7 | |
| 8 | typedef struct B B; |
| 9 | |
| 10 | typedef struct List_A { |
| 11 | struct A *members; |
| 12 | uintptr_t count; |
| 13 | } List_A; |
| 14 | |
| 15 | typedef struct List_B { |
| 16 | struct B *members; |
| 17 | uintptr_t count; |
| 18 | } List_B; |
| 19 | |
| 20 | #ifdef __cplusplus |
| 21 | extern "C" { |
| 22 | #endif // __cplusplus |
| 23 | |
| 24 | void foo(struct List_A a); |
| 25 | |
| 26 | void bar(struct List_B b); |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } // extern "C" |
| 30 | #endif // __cplusplus |