Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/forward_declaration.compat.c

raw
1 #if 0
2 ''' '
3 #endif
4 #if defined(CBINDGEN_STYLE_TYPE)
5 /* ANONYMOUS STRUCTS DO NOT SUPPORT FORWARD DECLARATIONS!
6 #endif
7 #if 0
8 ' '''
9 #endif
10
11
12 #include <stdarg.h>
13 #include <stdbool.h>
14 #include <stdint.h>
15 #include <stdlib.h>
16
17 typedef struct {
18 const TypeInfo *const *fields;
19 uintptr_t num_fields;
20 } StructInfo;
21
22 typedef enum {
23 Primitive,
24 Struct,
25 } TypeData_Tag;
26
27 typedef struct {
28 TypeData_Tag tag;
29 union {
30 struct {
31 StructInfo struct_;
32 };
33 };
34 } TypeData;
35
36 typedef struct {
37 TypeData data;
38 } TypeInfo;
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif // __cplusplus
43
44 void root(TypeInfo x);
45
46 #ifdef __cplusplus
47 } // extern "C"
48 #endif // __cplusplus
49
50 #if 0
51 ''' '
52 #endif
53 #if defined(CBINDGEN_STYLE_TYPE)
54 */
55 #endif
56 #if 0
57 ' '''
58 #endif