Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/forward_declaration.both.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 StructInfo {
18 const struct TypeInfo *const *fields;
19 uintptr_t num_fields;
20 } StructInfo;
21
22 typedef enum TypeData_Tag {
23 Primitive,
24 Struct,
25 } TypeData_Tag;
26
27 typedef struct TypeData {
28 TypeData_Tag tag;
29 union {
30 struct {
31 struct StructInfo struct_;
32 };
33 };
34 } TypeData;
35
36 typedef struct TypeInfo {
37 struct TypeData data;
38 } TypeInfo;
39
40 void root(struct TypeInfo x);
41
42 #if 0
43 ''' '
44 #endif
45 #if defined(CBINDGEN_STYLE_TYPE)
46 */
47 #endif
48 #if 0
49 ' '''
50 #endif