| 1 |
from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t |
| 2 |
from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t |
| 3 |
cdef extern from *: |
| 4 |
ctypedef bint bool |
| 5 |
ctypedef struct va_list |
| 6 |
|
| 7 |
cdef extern from *: |
| 8 |
|
| 9 |
ctypedef struct StylePoint_i32: |
| 10 |
int32_t x; |
| 11 |
int32_t y; |
| 12 |
|
| 13 |
ctypedef struct StylePoint_f32: |
| 14 |
float x; |
| 15 |
float y; |
| 16 |
|
| 17 |
cdef enum: |
| 18 |
Foo_i32, |
| 19 |
Bar_i32, |
| 20 |
Baz_i32, |
| 21 |
Bazz_i32, |
| 22 |
ctypedef uint8_t StyleFoo_i32_Tag; |
| 23 |
|
| 24 |
ctypedef struct StyleFoo_Body_i32: |
| 25 |
StyleFoo_i32_Tag tag; |
| 26 |
int32_t x; |
| 27 |
StylePoint_i32 y; |
| 28 |
StylePoint_f32 z; |
| 29 |
|
| 30 |
ctypedef union StyleFoo_i32: |
| 31 |
StyleFoo_i32_Tag tag; |
| 32 |
StyleFoo_Body_i32 foo; |
| 33 |
int32_t bar; |
| 34 |
StylePoint_i32 baz; |
| 35 |
|
| 36 |
ctypedef enum StyleBar_i32_Tag: |
| 37 |
Bar1_i32, |
| 38 |
Bar2_i32, |
| 39 |
Bar3_i32, |
| 40 |
Bar4_i32, |
| 41 |
|
| 42 |
ctypedef struct StyleBar1_Body_i32: |
| 43 |
int32_t x; |
| 44 |
StylePoint_i32 y; |
| 45 |
StylePoint_f32 z; |
| 46 |
int32_t (*u)(int32_t); |
| 47 |
|
| 48 |
ctypedef struct StyleBar_i32: |
| 49 |
StyleBar_i32_Tag tag; |
| 50 |
StyleBar1_Body_i32 bar1; |
| 51 |
int32_t bar2; |
| 52 |
StylePoint_i32 bar3; |
| 53 |
|
| 54 |
ctypedef struct StylePoint_u32: |
| 55 |
uint32_t x; |
| 56 |
uint32_t y; |
| 57 |
|
| 58 |
ctypedef enum StyleBar_u32_Tag: |
| 59 |
Bar1_u32, |
| 60 |
Bar2_u32, |
| 61 |
Bar3_u32, |
| 62 |
Bar4_u32, |
| 63 |
|
| 64 |
ctypedef struct StyleBar1_Body_u32: |
| 65 |
int32_t x; |
| 66 |
StylePoint_u32 y; |
| 67 |
StylePoint_f32 z; |
| 68 |
int32_t (*u)(int32_t); |
| 69 |
|
| 70 |
ctypedef struct StyleBar_u32: |
| 71 |
StyleBar_u32_Tag tag; |
| 72 |
StyleBar1_Body_u32 bar1; |
| 73 |
uint32_t bar2; |
| 74 |
StylePoint_u32 bar3; |
| 75 |
|
| 76 |
cdef enum: |
| 77 |
Baz1, |
| 78 |
Baz2, |
| 79 |
Baz3, |
| 80 |
ctypedef uint8_t StyleBaz_Tag; |
| 81 |
|
| 82 |
ctypedef union StyleBaz: |
| 83 |
StyleBaz_Tag tag; |
| 84 |
StyleBar_u32 baz1; |
| 85 |
StylePoint_i32 baz2; |
| 86 |
|
| 87 |
cdef enum: |
| 88 |
Taz1, |
| 89 |
Taz2, |
| 90 |
Taz3, |
| 91 |
ctypedef uint8_t StyleTaz_Tag; |
| 92 |
|
| 93 |
ctypedef struct StyleTaz: |
| 94 |
StyleTaz_Tag tag; |
| 95 |
StyleBar_u32 taz1; |
| 96 |
StyleBaz taz2; |
| 97 |
|
| 98 |
void foo(const StyleFoo_i32 *foo, |
| 99 |
const StyleBar_i32 *bar, |
| 100 |
const StyleBaz *baz, |
| 101 |
const StyleTaz *taz); |