| 1 |
#if 0 |
| 2 |
''' ' |
| 3 |
#endif |
| 4 |
|
| 5 |
#ifdef __cplusplus |
| 6 |
// These could be added as opaque types I guess. |
| 7 |
template <typename T> |
| 8 |
struct BuildHasherDefault; |
| 9 |
|
| 10 |
struct DefaultHasher; |
| 11 |
#endif |
| 12 |
|
| 13 |
#if 0 |
| 14 |
' ''' |
| 15 |
#endif |
| 16 |
|
| 17 |
|
| 18 |
from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t |
| 19 |
from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t |
| 20 |
cdef extern from *: |
| 21 |
ctypedef bint bool |
| 22 |
ctypedef struct va_list |
| 23 |
|
| 24 |
cdef extern from *: |
| 25 |
|
| 26 |
ctypedef struct HashMap_i32__i32__BuildHasherDefault_DefaultHasher: |
| 27 |
pass |
| 28 |
|
| 29 |
ctypedef struct Result_Foo: |
| 30 |
pass |
| 31 |
|
| 32 |
# Fast hash map used internally. |
| 33 |
ctypedef HashMap_i32__i32__BuildHasherDefault_DefaultHasher FastHashMap_i32__i32; |
| 34 |
|
| 35 |
ctypedef FastHashMap_i32__i32 Foo; |
| 36 |
|
| 37 |
ctypedef Result_Foo Bar; |
| 38 |
|
| 39 |
void root(const Foo *a, const Bar *b); |