| 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 |
const int32_t C_H # = 10 |
| 10 |
|
| 11 |
cdef enum: |
| 12 |
x # = 0, |
| 13 |
y # = 1, |
| 14 |
ctypedef uint8_t C_E; |
| 15 |
|
| 16 |
ctypedef struct C_A: |
| 17 |
pass |
| 18 |
|
| 19 |
ctypedef struct C_C: |
| 20 |
pass |
| 21 |
|
| 22 |
ctypedef struct C_AwesomeB: |
| 23 |
int32_t x; |
| 24 |
float y; |
| 25 |
|
| 26 |
ctypedef union C_D: |
| 27 |
int32_t x; |
| 28 |
float y; |
| 29 |
|
| 30 |
ctypedef C_A C_F; |
| 31 |
|
| 32 |
const intptr_t C_I # = <intptr_t><C_F*>10 |
| 33 |
|
| 34 |
extern const int32_t G; |
| 35 |
|
| 36 |
void root(const C_A *a, C_AwesomeB b, C_C c, C_D d, C_E e, C_F f); |