| 1 |
#if 0 |
| 2 |
DEF DEFINE_FREEBSD = 0 |
| 3 |
#endif |
| 4 |
|
| 5 |
|
| 6 |
from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t |
| 7 |
from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t |
| 8 |
cdef extern from *: |
| 9 |
ctypedef bint bool |
| 10 |
ctypedef struct va_list |
| 11 |
|
| 12 |
cdef extern from *: |
| 13 |
|
| 14 |
ctypedef struct Foo: |
| 15 |
int32_t x; |
| 16 |
|
| 17 |
ctypedef struct RenamedTy: |
| 18 |
uint64_t y; |
| 19 |
|
| 20 |
IF not DEFINE_FREEBSD: |
| 21 |
ctypedef struct NoExternTy: |
| 22 |
uint8_t field; |
| 23 |
|
| 24 |
IF not DEFINE_FREEBSD: |
| 25 |
ctypedef struct ContainsNoExternTy: |
| 26 |
NoExternTy field; |
| 27 |
|
| 28 |
IF DEFINE_FREEBSD: |
| 29 |
ctypedef struct ContainsNoExternTy: |
| 30 |
uint64_t field; |
| 31 |
|
| 32 |
void root(Foo a); |
| 33 |
|
| 34 |
void renamed_func(RenamedTy a); |
| 35 |
|
| 36 |
void no_extern_func(ContainsNoExternTy a); |