| 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 |
void root(TypeInfo x); |
| 41 |
|
| 42 |
#if 0 |
| 43 |
''' ' |
| 44 |
#endif |
| 45 |
#if defined(CBINDGEN_STYLE_TYPE) |
| 46 |
*/ |
| 47 |
#endif |
| 48 |
#if 0 |
| 49 |
' ''' |
| 50 |
#endif |