ffi: update PyConfig for Python 3.10
This commit is contained in:
parent
9ef330d21c
commit
7ed53b72fa
|
@ -99,7 +99,10 @@ pub struct PyConfig {
|
|||
pub filesystem_errors: *mut wchar_t,
|
||||
pub pycache_prefix: *mut wchar_t,
|
||||
pub parse_argv: c_int,
|
||||
#[cfg(Py_3_10)]
|
||||
pub orig_argv: PyWideStringList,
|
||||
pub argv: PyWideStringList,
|
||||
#[cfg(not(Py_3_10))]
|
||||
pub program_name: *mut wchar_t,
|
||||
pub xoptions: PyWideStringList,
|
||||
pub warnoptions: PyWideStringList,
|
||||
|
@ -122,9 +125,14 @@ pub struct PyConfig {
|
|||
pub legacy_windows_stdio: c_int,
|
||||
|
||||
pub check_hash_pycs_mode: *mut wchar_t,
|
||||
#[cfg(Py_3_10)]
|
||||
pub program_name: *mut wchar_t,
|
||||
pub pathconfig_warnings: c_int,
|
||||
pub pythonpath_env: *mut wchar_t,
|
||||
pub home: *mut wchar_t,
|
||||
#[cfg(Py_3_10)]
|
||||
pub platlibdir: *mut wchar_t,
|
||||
|
||||
pub module_search_paths_set: c_int,
|
||||
pub module_search_paths: PyWideStringList,
|
||||
pub executable: *mut wchar_t,
|
||||
|
@ -133,7 +141,7 @@ pub struct PyConfig {
|
|||
pub base_prefix: *mut wchar_t,
|
||||
pub exec_prefix: *mut wchar_t,
|
||||
pub base_exec_prefix: *mut wchar_t,
|
||||
#[cfg(Py_3_9)]
|
||||
#[cfg(all(Py_3_9, not(Py_3_10)))]
|
||||
pub platlibdir: *mut wchar_t,
|
||||
pub skip_source_first_line: c_int,
|
||||
pub run_command: *mut wchar_t,
|
||||
|
@ -143,7 +151,7 @@ pub struct PyConfig {
|
|||
pub _init_main: c_int,
|
||||
#[cfg(Py_3_9)]
|
||||
pub _isolated_interpreter: c_int,
|
||||
#[cfg(Py_3_9)]
|
||||
#[cfg(all(Py_3_9, not(Py_3_10)))]
|
||||
pub orig_argv: PyWideStringList,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue