Skip to content

Commit

Permalink
Merge pull request #2434 from alex/ffi-fixes
Browse files Browse the repository at this point in the history
ffi: fixes for field names/presence
  • Loading branch information
davidhewitt committed Jun 5, 2022
2 parents 65616d2 + 9cfbdec commit 330fccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyo3-ffi/src/cpython/frameobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion pyo3-ffi/src/cpython/initconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 330fccc

Please sign in to comment.