1 | pub type PY_UINT32_T = u32; |
2 | pub type PY_UINT64_T = u64; |
3 | |
4 | pub type PY_INT32_T = i32; |
5 | pub type PY_INT64_T = i64; |
6 | |
7 | pub type Py_uintptr_t = ::libc::uintptr_t; |
8 | pub type Py_intptr_t = ::libc::intptr_t; |
9 | pub type Py_ssize_t = ::libc::ssize_t; |
10 | |
11 | pub type Py_hash_t = Py_ssize_t; |
12 | pub type Py_uhash_t = ::libc::size_t; |
13 | |
14 | pub const PY_SSIZE_T_MIN: Py_ssize_t = std::isize::MIN as Py_ssize_t; |
15 | pub const PY_SSIZE_T_MAX: Py_ssize_t = std::isize::MAX as Py_ssize_t; |
16 | |
17 | #[cfg (target_endian = "big" )] |
18 | pub const PY_BIG_ENDIAN: usize = 1; |
19 | #[cfg (target_endian = "big" )] |
20 | pub const PY_LITTLE_ENDIAN: usize = 0; |
21 | |
22 | #[cfg (target_endian = "little" )] |
23 | pub const PY_BIG_ENDIAN: usize = 0; |
24 | #[cfg (target_endian = "little" )] |
25 | pub const PY_LITTLE_ENDIAN: usize = 1; |
26 | |