Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/rename_crate.both.c

raw
1 #if 0
2 DEF DEFINE_FREEBSD = 0
3 #endif
4
5
6 #include <stdarg.h>
7 #include <stdbool.h>
8 #include <stdint.h>
9 #include <stdlib.h>
10
11 typedef struct Foo {
12 int32_t x;
13 } Foo;
14
15 typedef struct RenamedTy {
16 uint64_t y;
17 } RenamedTy;
18
19 #if !defined(DEFINE_FREEBSD)
20 typedef struct NoExternTy {
21 uint8_t field;
22 } NoExternTy;
23 #endif
24
25 #if !defined(DEFINE_FREEBSD)
26 typedef struct ContainsNoExternTy {
27 struct NoExternTy field;
28 } ContainsNoExternTy;
29 #endif
30
31 #if defined(DEFINE_FREEBSD)
32 typedef struct ContainsNoExternTy {
33 uint64_t field;
34 } ContainsNoExternTy;
35 #endif
36
37 void root(struct Foo a);
38
39 void renamed_func(struct RenamedTy a);
40
41 void no_extern_func(struct ContainsNoExternTy a);