Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/monomorph_2.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 {
11 A *members;
12 uintptr_t count;
13 } List_A;
14
15 typedef struct {
16 B *members;
17 uintptr_t count;
18 } List_B;
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif // __cplusplus
23
24 void foo(List_A a);
25
26 void bar(List_B b);
27
28 #ifdef __cplusplus
29 } // extern "C"
30 #endif // __cplusplus