| 1 | // NB libc does not define this constant on all platforms, so we hard code it |
| 2 | // like CPython does. |
| 3 | // https://github.com/python/cpython/blob/d8b9011702443bb57579f8834f3effe58e290dfc/Include/pyport.h#L372 |
| 4 | pub const INT_MAXrust-analyzer cargo pyo3-ffi 0.28.2 pyport/INT_MAX.: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# = 2147483647; |
| 5 | |
| 6 | pub type PY_UINT32_Trust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_UINT32_T# = u32; |
| 7 | pub type PY_UINT64_Trust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_UINT64_T# = u64; |
| 8 | |
| 9 | pub type PY_INT32_Trust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_INT32_T# = i32; |
| 10 | pub type PY_INT64_Trust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_INT64_T# = i64; |
| 11 | |
| 12 | pub type Py_uintptr_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_uintptr_t# = ::libcrust-analyzer cargo libc 0.2.182 crate/::uintptr_trust-analyzer cargo libc 0.2.182 unix/uintptr_t#; |
| 13 | pub type Py_intptr_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_intptr_t# = ::libcrust-analyzer cargo libc 0.2.182 crate/::intptr_trust-analyzer cargo libc 0.2.182 unix/intptr_t#; |
| 14 | pub type Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t# = ::libcrust-analyzer cargo libc 0.2.182 crate/::ssize_trust-analyzer cargo libc 0.2.182 unix/ssize_t#; |
| 15 | |
| 16 | pub type Py_hash_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_hash_t# = Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#; |
| 17 | pub type Py_uhash_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_uhash_t# = ::libcrust-analyzer cargo libc 0.2.182 crate/::size_trust-analyzer cargo libc 0.2.182 unix/size_t#; |
| 18 | |
| 19 | pub const PY_SSIZE_T_MINrust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_SSIZE_T_MIN.: Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t# = Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#::MINrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[isize]MIN.; |
| 20 | pub const PY_SSIZE_T_MAXrust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_SSIZE_T_MAX.: Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t# = Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#::MAXrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[isize]MAX.; |
| 21 | |
| 22 | #[cfg(target_endian = "big")] |
| 23 | pub const PY_BIG_ENDIAN: usize = 1; |
| 24 | #[cfg(target_endian = "big")] |
| 25 | pub const PY_LITTLE_ENDIAN: usize = 0; |
| 26 | |
| 27 | #[cfg(target_endian = "little")] |
| 28 | pub const PY_BIG_ENDIANrust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_BIG_ENDIAN.: usize = 0; |
| 29 | #[cfg(target_endian = "little")] |
| 30 | pub const PY_LITTLE_ENDIANrust-analyzer cargo pyo3-ffi 0.28.2 pyport/PY_LITTLE_ENDIAN.: usize = 1; |