| 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 |
cdef enum: |
| 10 |
Ok, |
| 11 |
Err, |
| 12 |
ctypedef uint32_t Status; |
| 13 |
|
| 14 |
ctypedef struct Dep: |
| 15 |
int32_t a; |
| 16 |
float b; |
| 17 |
|
| 18 |
ctypedef struct Foo_i32: |
| 19 |
int32_t a; |
| 20 |
int32_t b; |
| 21 |
Dep c; |
| 22 |
|
| 23 |
ctypedef Foo_i32 IntFoo; |
| 24 |
|
| 25 |
ctypedef struct Foo_f64: |
| 26 |
double a; |
| 27 |
double b; |
| 28 |
Dep c; |
| 29 |
|
| 30 |
ctypedef Foo_f64 DoubleFoo; |
| 31 |
|
| 32 |
ctypedef int32_t Unit; |
| 33 |
|
| 34 |
ctypedef Status SpecialStatus; |
| 35 |
|
| 36 |
void root(IntFoo x, DoubleFoo y, Unit z, SpecialStatus w); |