File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ Define ` _PyDict_Contains_KnownHash() ` FFI for CPython 3.10 or later.
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ extern "C" {
42
42
hash : * mut crate :: Py_hash_t ,
43
43
) -> c_int ;
44
44
// skipped PyDict_GET_SIZE
45
- // skipped _PyDict_Contains_KnownHash
46
45
// skipped _PyDict_ContainsId
47
46
pub fn _PyDict_NewPresized ( minused : Py_ssize_t ) -> * mut PyObject ;
48
47
// skipped _PyDict_MaybeUntrack
@@ -63,6 +62,14 @@ extern "C" {
63
62
// skipped _PyDictViewObject
64
63
// skipped _PyDictView_New
65
64
// skipped _PyDictView_Intersect
65
+
66
+ #[ cfg( Py_3_10 ) ]
67
+ pub fn _PyDict_Contains_KnownHash (
68
+ op : * mut PyObject ,
69
+ key : * mut PyObject ,
70
+ hash : crate :: Py_hash_t ,
71
+ ) -> c_int ;
72
+
66
73
#[ cfg( not( Py_3_10 ) ) ]
67
74
pub fn _PyDict_Contains ( mp : * mut PyObject , key : * mut PyObject , hash : Py_ssize_t ) -> c_int ;
68
75
}
You can’t perform that action at this time.
0 commit comments