Skip to content

Commit

Permalink
fix typo and missed configs in FFI bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Sep 5, 2024
1 parent 699de42 commit 97d92ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-ffi/src/cpython/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pub struct PyMutex {

extern "C" {
pub fn PyMutex_Lock(m: *mut PyMutex);
pub fn PyMutex_UnLock(m: *mut PyMutex);
pub fn PyMutex_Unlock(m: *mut PyMutex);
}
1 change: 1 addition & 0 deletions pyo3-ffi/src/dictobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ extern "C" {
#[cfg_attr(PyPy, link_name = "PyPyDict_DelItemString")]
pub fn PyDict_DelItemString(dp: *mut PyObject, key: *const c_char) -> c_int;
#[cfg(Py_3_13)]
#[cfg_attr(PyPy, link_name = "PyPyDict_GetItemRef")]
pub fn PyDict_GetItemRef(
dp: *mut PyObject,
key: *mut PyObject,
Expand Down
1 change: 1 addition & 0 deletions pyo3-ffi/src/listobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ extern "C" {
#[cfg_attr(PyPy, link_name = "PyPyList_GetItem")]
pub fn PyList_GetItem(arg1: *mut PyObject, arg2: Py_ssize_t) -> *mut PyObject;
#[cfg(Py_3_13)]
#[cfg_attr(PyPy, link_name = "PyPyList_GetItemRef")]
pub fn PyList_GetItemRef(arg1: *mut PyObject, arg2: Py_ssize_t) -> *mut PyObject;
#[cfg_attr(PyPy, link_name = "PyPyList_SetItem")]
pub fn PyList_SetItem(arg1: *mut PyObject, arg2: Py_ssize_t, arg3: *mut PyObject) -> c_int;
Expand Down

0 comments on commit 97d92ab

Please sign in to comment.