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