.cargo/vendor/cbindgen/tests/expectations/const_generics.both.compat.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | #define TITLE_SIZE 80 |
| 7 | |
| 8 | typedef int8_t CArrayString_TITLE_SIZE[TITLE_SIZE]; |
| 9 | |
| 10 | typedef int8_t CArrayString_40[40]; |
| 11 | |
| 12 | typedef struct Book { |
| 13 | CArrayString_TITLE_SIZE title; |
| 14 | CArrayString_40 author; |
| 15 | } Book; |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif // __cplusplus |
| 20 | |
| 21 | void root(struct Book *a); |
| 22 | |
| 23 | #ifdef __cplusplus |
| 24 | } // extern "C" |
| 25 | #endif // __cplusplus |