| 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 Foo: |
| 10 |
bool a; |
| 11 |
int32_t b; |
| 12 |
|
| 13 |
cdef enum: |
| 14 |
Baz, |
| 15 |
Bazz, |
| 16 |
FooNamed, |
| 17 |
FooParen, |
| 18 |
ctypedef uint8_t Bar_Tag; |
| 19 |
|
| 20 |
ctypedef struct Bazz_Body: |
| 21 |
Bar_Tag tag; |
| 22 |
Foo named; |
| 23 |
|
| 24 |
ctypedef struct FooNamed_Body: |
| 25 |
Bar_Tag tag; |
| 26 |
int32_t different; |
| 27 |
uint32_t fields; |
| 28 |
|
| 29 |
ctypedef struct FooParen_Body: |
| 30 |
Bar_Tag tag; |
| 31 |
int32_t _0; |
| 32 |
Foo _1; |
| 33 |
|
| 34 |
ctypedef union Bar: |
| 35 |
Bar_Tag tag; |
| 36 |
Bazz_Body bazz; |
| 37 |
FooNamed_Body foo_named; |
| 38 |
FooParen_Body foo_paren; |
| 39 |
|
| 40 |
Foo root(Bar aBar); |