Debian Codegraph @

src/pylifecycle.rs

raw symbols SCIP
1 use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::pytypedefsrust-analyzer cargo pyo3-ffi 0.28.2 pytypedefs/::PyThreadStaterust-analyzer cargo pyo3-ffi 0.28.2 pytypedefs/PyThreadState#;
2
3 use libcrust-analyzer cargo libc 0.2.182 crate/::wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
4 use 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_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#};
5
6 extern "C" {
7 pub fn Py_Initializerust-analyzer cargo pyo3-ffi 0.28.2 Py_Initialize().();
8 pub fn Py_InitializeExrust-analyzer cargo pyo3-ffi 0.28.2 Py_InitializeEx().(arg1: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#);
9 pub fn Py_Finalizerust-analyzer cargo pyo3-ffi 0.28.2 Py_Finalize().();
10 pub fn Py_FinalizeExrust-analyzer cargo pyo3-ffi 0.28.2 Py_FinalizeEx().() -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
11
12 #[cfg_attr(PyPy, link_name = "PyPy_IsInitialized")]
13 pub fn Py_IsInitializedrust-analyzer cargo pyo3-ffi 0.28.2 Py_IsInitialized().() -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
14
15 pub fn Py_NewInterpreterrust-analyzer cargo pyo3-ffi 0.28.2 Py_NewInterpreter().() -> *mut PyThreadStaterust-analyzer cargo pyo3-ffi 0.28.2 pytypedefs/PyThreadState#;
16 pub fn Py_EndInterpreterrust-analyzer cargo pyo3-ffi 0.28.2 Py_EndInterpreter().(arg1: *mut PyThreadStaterust-analyzer cargo pyo3-ffi 0.28.2 pytypedefs/PyThreadState#);
17
18 #[cfg_attr(PyPy, link_name = "PyPy_AtExit")]
19 pub fn Py_AtExitrust-analyzer cargo pyo3-ffi 0.28.2 Py_AtExit().(func: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<extern "C" fn()>) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
20
21 pub fn Py_Exitrust-analyzer cargo pyo3-ffi 0.28.2 Py_Exit().(arg1: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> !;
22
23 pub fn Py_Mainrust-analyzer cargo pyo3-ffi 0.28.2 Py_Main().(argc: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, argv: *mut *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
24 pub fn Py_BytesMainrust-analyzer cargo pyo3-ffi 0.28.2 Py_BytesMain().(argc: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, argv: *mut *mut c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#) -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
25
26 #[cfg_attr(
27 Py_3_11,
28 deprecated(note = "Deprecated since Python 3.11. Use `PyConfig.program_name` instead.")
29 )]
30 pub fn Py_SetProgramNamerust-analyzer cargo pyo3-ffi 0.28.2 Py_SetProgramName().(arg1: *const wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#);
31 #[cfg_attr(PyPy, link_name = "PyPy_GetProgramName")]
32 #[cfg_attr(
33 Py_3_13,
34 deprecated(note = "Deprecated since Python 3.13. Use `sys.executable` instead.")
35 )]
36 pub fn Py_GetProgramNamerust-analyzer cargo pyo3-ffi 0.28.2 Py_GetProgramName().() -> *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
37
38 #[cfg_attr(
39 Py_3_11,
40 deprecated(note = "Deprecated since Python 3.11. Use `PyConfig.home` instead.")
41 )]
42 pub fn Py_SetPythonHomerust-analyzer cargo pyo3-ffi 0.28.2 Py_SetPythonHome().(arg1: *const wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#);
43 #[cfg_attr(
44 Py_3_13,
45 deprecated(
46 note = "Deprecated since Python 3.13. Use `PyConfig.home` or the value of the `PYTHONHOME` environment variable instead."
47 )
48 )]
49 pub fn Py_GetPythonHomerust-analyzer cargo pyo3-ffi 0.28.2 Py_GetPythonHome().() -> *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
50 #[cfg_attr(
51 Py_3_13,
52 deprecated(note = "Deprecated since Python 3.13. Use `sys.executable` instead.")
53 )]
54 pub fn Py_GetProgramFullPathrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetProgramFullPath().() -> *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
55 #[cfg_attr(
56 Py_3_13,
57 deprecated(note = "Deprecated since Python 3.13. Use `sys.prefix` instead.")
58 )]
59 pub fn Py_GetPrefixrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetPrefix().() -> *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
60 #[cfg_attr(
61 Py_3_13,
62 deprecated(note = "Deprecated since Python 3.13. Use `sys.exec_prefix` instead.")
63 )]
64 pub fn Py_GetExecPrefixrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetExecPrefix().() -> *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
65 #[cfg_attr(
66 Py_3_13,
67 deprecated(note = "Deprecated since Python 3.13. Use `sys.path` instead.")
68 )]
69 pub fn Py_GetPathrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetPath().() -> *mut wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#;
70 #[cfg(not(Py_3_13))]
71 #[cfg_attr(
72 Py_3_11,
73 deprecated(note = "Deprecated since Python 3.11. Use `sys.path` instead.")
74 )]
75 pub fn Py_SetPathrust-analyzer cargo pyo3-ffi 0.28.2 Py_SetPath().(arg1: *const wchar_trust-analyzer cargo libc 0.2.182 unix/linux_like/linux/gnu/b64/x86_64/wchar_t#);
76
77 // skipped _Py_CheckPython3
78
79 #[cfg_attr(PyPy, link_name = "PyPy_GetVersion")]
80 pub fn Py_GetVersionrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetVersion().() -> *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
81 pub fn Py_GetPlatformrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetPlatform().() -> *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
82 pub fn Py_GetCopyrightrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetCopyright().() -> *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
83 pub fn Py_GetCompilerrust-analyzer cargo pyo3-ffi 0.28.2 Py_GetCompiler().() -> *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
84 pub fn Py_GetBuildInforust-analyzer cargo pyo3-ffi 0.28.2 Py_GetBuildInfo().() -> *const c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#;
85 }
86
87 type PyOS_sighandler_trust-analyzer cargo pyo3-ffi 0.28.2 pylifecycle/PyOS_sighandler_t# = unsafe extern "C" fn(arg1: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#);
88
89 extern "C" {
90 pub fn PyOS_getsigrust-analyzer cargo pyo3-ffi 0.28.2 PyOS_getsig().(arg1: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#) -> PyOS_sighandler_trust-analyzer cargo pyo3-ffi 0.28.2 pylifecycle/PyOS_sighandler_t#;
91 pub fn PyOS_setsigrust-analyzer cargo pyo3-ffi 0.28.2 PyOS_setsig().(arg1: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, arg2: PyOS_sighandler_trust-analyzer cargo pyo3-ffi 0.28.2 pylifecycle/PyOS_sighandler_t#) -> PyOS_sighandler_trust-analyzer cargo pyo3-ffi 0.28.2 pylifecycle/PyOS_sighandler_t#;
92
93 #[cfg(Py_3_11)]
94 pub static Py_Version: 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_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#;
95
96 #[cfg(Py_3_13)]
97 pub fn Py_IsFinalizing() -> c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#;
98 }