Merge pull request #2434 from alex/ffi-fixes
ffi: fixes for field names/presence
This commit is contained in:
commit
330fcccf97
|
@ -32,6 +32,7 @@ pub struct PyFrameObject {
|
|||
#[cfg(not(Py_3_10))]
|
||||
pub f_stacktop: *mut *mut PyObject,
|
||||
pub f_trace: *mut PyObject,
|
||||
#[cfg(Py_3_10)]
|
||||
pub f_stackdepth: c_int,
|
||||
pub f_trace_lines: c_char,
|
||||
pub f_trace_opcodes: c_char,
|
||||
|
@ -43,6 +44,7 @@ pub struct PyFrameObject {
|
|||
pub f_iblock: c_int,
|
||||
#[cfg(not(Py_3_10))]
|
||||
pub f_executing: c_char,
|
||||
#[cfg(Py_3_10)]
|
||||
pub f_state: PyFrameState,
|
||||
pub f_blockstack: [PyTryBlock; crate::CO_MAXBLOCKS],
|
||||
pub f_localsplus: [*mut PyObject; 1],
|
||||
|
|
|
@ -168,7 +168,7 @@ pub struct PyConfig {
|
|||
#[cfg(Py_3_11)]
|
||||
pub _is_python_build: c_int,
|
||||
#[cfg(all(Py_3_9, not(Py_3_10)))]
|
||||
pub orig_argv: PyWideStringList,
|
||||
pub _orig_argv: PyWideStringList,
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in New Issue