Skip to main content

pyforge_ffi/cpython/
pydebug.rs

1use std::ffi::{c_char, c_int};
2
3#[cfg(not(Py_LIMITED_API))]
4extern_libpython! {
5    #[deprecated(note = "Python 3.12")]
6    pub static mut Py_DebugFlag: c_int;
7    #[deprecated(note = "Python 3.12")]
8    pub static mut Py_VerboseFlag: c_int;
9    #[deprecated(note = "Python 3.12")]
10    pub static mut Py_QuietFlag: c_int;
11    #[deprecated(note = "Python 3.12")]
12    pub static mut Py_InteractiveFlag: c_int;
13    #[deprecated(note = "Python 3.12")]
14    pub static mut Py_InspectFlag: c_int;
15    #[deprecated(note = "Python 3.12")]
16    pub static mut Py_OptimizeFlag: c_int;
17    #[deprecated(note = "Python 3.12")]
18    pub static mut Py_NoSiteFlag: c_int;
19    #[deprecated(note = "Python 3.12")]
20    pub static mut Py_BytesWarningFlag: c_int;
21    #[deprecated(note = "Python 3.12")]
22    pub static mut Py_UseClassExceptionsFlag: c_int;
23    #[deprecated(note = "Python 3.12")]
24    pub static mut Py_FrozenFlag: c_int;
25    #[deprecated(note = "Python 3.12")]
26    pub static mut Py_IgnoreEnvironmentFlag: c_int;
27    #[deprecated(note = "Python 3.12")]
28    pub static mut Py_DontWriteBytecodeFlag: c_int;
29    #[deprecated(note = "Python 3.12")]
30    pub static mut Py_NoUserSiteDirectory: c_int;
31    #[deprecated(note = "Python 3.12")]
32    pub static mut Py_UnbufferedStdioFlag: c_int;
33    pub static mut Py_HashRandomizationFlag: c_int;
34    #[deprecated(note = "Python 3.12")]
35    pub static mut Py_IsolatedFlag: c_int;
36    #[cfg(windows)]
37    #[deprecated(note = "Python 3.12")]
38    pub static mut Py_LegacyWindowsFSEncodingFlag: c_int;
39    #[cfg(windows)]
40    #[deprecated(note = "Python 3.12")]
41    pub static mut Py_LegacyWindowsStdioFlag: c_int;
42}
43
44extern_libpython! {
45    pub fn Py_GETENV(name: *const c_char) -> *mut c_char;
46}
47