Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/opaque.both.compat.c

raw
1 #if 0
2 ''' '
3 #endif
4
5 #ifdef __cplusplus
6 // These could be added as opaque types I guess.
7 template <typename T>
8 struct BuildHasherDefault;
9
10 struct DefaultHasher;
11 #endif
12
13 #if 0
14 ' '''
15 #endif
16
17
18 #include <stdarg.h>
19 #include <stdbool.h>
20 #include <stdint.h>
21 #include <stdlib.h>
22
23 typedef struct HashMap_i32__i32__BuildHasherDefault_DefaultHasher HashMap_i32__i32__BuildHasherDefault_DefaultHasher;
24
25 typedef struct Result_Foo Result_Foo;
26
27 /**
28 * Fast hash map used internally.
29 */
30 typedef struct HashMap_i32__i32__BuildHasherDefault_DefaultHasher FastHashMap_i32__i32;
31
32 typedef FastHashMap_i32__i32 Foo;
33
34 typedef struct Result_Foo Bar;
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif // __cplusplus
39
40 void root(const Foo *a, const Bar *b);
41
42 #ifdef __cplusplus
43 } // extern "C"
44 #endif // __cplusplus