Skip to content

Commit cf5df4a

Browse files
authored
fix typo and missed configs in FFI bindings (#4532)
1 parent e2a1da0 commit cf5df4a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pyo3-ffi/src/cpython/lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ pub struct PyMutex {
1010

1111
extern "C" {
1212
pub fn PyMutex_Lock(m: *mut PyMutex);
13-
pub fn PyMutex_UnLock(m: *mut PyMutex);
13+
pub fn PyMutex_Unlock(m: *mut PyMutex);
1414
}

pyo3-ffi/src/dictobject.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ extern "C" {
6767
#[cfg_attr(PyPy, link_name = "PyPyDict_DelItemString")]
6868
pub fn PyDict_DelItemString(dp: *mut PyObject, key: *const c_char) -> c_int;
6969
#[cfg(Py_3_13)]
70+
#[cfg_attr(PyPy, link_name = "PyPyDict_GetItemRef")]
7071
pub fn PyDict_GetItemRef(
7172
dp: *mut PyObject,
7273
key: *mut PyObject,

pyo3-ffi/src/listobject.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ extern "C" {
2929
#[cfg_attr(PyPy, link_name = "PyPyList_GetItem")]
3030
pub fn PyList_GetItem(arg1: *mut PyObject, arg2: Py_ssize_t) -> *mut PyObject;
3131
#[cfg(Py_3_13)]
32+
#[cfg_attr(PyPy, link_name = "PyPyList_GetItemRef")]
3233
pub fn PyList_GetItemRef(arg1: *mut PyObject, arg2: Py_ssize_t) -> *mut PyObject;
3334
#[cfg_attr(PyPy, link_name = "PyPyList_SetItem")]
3435
pub fn PyList_SetItem(arg1: *mut PyObject, arg2: Py_ssize_t, arg3: *mut PyObject) -> c_int;

0 commit comments

Comments
 (0)