|
| 1 | +#[cfg(not(GraalPy))] |
1 | 2 | use crate::object::*; |
2 | | -#[cfg(not(PyPy))] |
| 3 | +#[cfg(not(any(PyPy, GraalPy)))] |
3 | 4 | use crate::pyport::Py_ssize_t; |
4 | | -#[cfg(not(PyPy))] |
5 | | -use std::ffi::c_int; |
6 | 5 |
|
7 | 6 | #[cfg(not(PyPy))] |
8 | 7 | opaque_struct!(pub PyDictKeysObject); |
@@ -40,61 +39,29 @@ pub struct PyDictObject { |
40 | 39 | _tmpkeys: *mut PyObject, |
41 | 40 | } |
42 | 41 |
|
43 | | -extern "C" { |
44 | | - // skipped _PyDict_GetItem_KnownHash |
45 | | - // skipped _PyDict_GetItemIdWithError |
46 | | - // skipped _PyDict_GetItemStringWithError |
47 | | - // skipped PyDict_SetDefault |
48 | | - #[cfg(not(PyPy))] |
49 | | - pub fn _PyDict_SetItem_KnownHash( |
50 | | - mp: *mut PyObject, |
51 | | - key: *mut PyObject, |
52 | | - item: *mut PyObject, |
53 | | - hash: crate::Py_hash_t, |
54 | | - ) -> c_int; |
55 | | - // skipped _PyDict_DelItem_KnownHash |
56 | | - // skipped _PyDict_DelItemIf |
57 | | - // skipped _PyDict_NewKeysForClass |
58 | | - #[cfg(not(PyPy))] |
59 | | - pub fn _PyDict_Next( |
60 | | - mp: *mut PyObject, |
61 | | - pos: *mut Py_ssize_t, |
62 | | - key: *mut *mut PyObject, |
63 | | - value: *mut *mut PyObject, |
64 | | - hash: *mut crate::Py_hash_t, |
65 | | - ) -> c_int; |
66 | | - // skipped PyDict_GET_SIZE |
67 | | - // skipped _PyDict_ContainsId |
68 | | - #[cfg(not(PyPy))] |
69 | | - pub fn _PyDict_NewPresized(minused: Py_ssize_t) -> *mut PyObject; |
70 | | - // skipped _PyDict_MaybeUntrack |
71 | | - // skipped _PyDict_HasOnlyStringKeys |
72 | | - // skipped _PyDict_KeysSize |
73 | | - // skipped _PyDict_SizeOf |
74 | | - // skipped _PyDict_Pop |
75 | | - // skipped _PyDict_Pop_KnownHash |
76 | | - // skipped _PyDict_FromKeys |
77 | | - // skipped _PyDict_HasSplitTable |
78 | | - // skipped _PyDict_MergeEx |
79 | | - // skipped _PyDict_SetItemId |
80 | | - // skipped _PyDict_DelItemId |
81 | | - // skipped _PyDict_DebugMallocStats |
82 | | - // skipped _PyObjectDict_SetItem |
83 | | - // skipped _PyDict_LoadGlobal |
84 | | - // skipped _PyDict_GetItemHint |
85 | | - // skipped _PyDictViewObject |
86 | | - // skipped _PyDictView_New |
87 | | - // skipped _PyDictView_Intersect |
| 42 | +// skipped private _PyDict_GetItem_KnownHash |
| 43 | +// skipped private _PyDict_GetItemStringWithError |
88 | 44 |
|
89 | | - #[cfg(Py_3_10)] |
90 | | - #[cfg(not(PyPy))] |
91 | | - pub fn _PyDict_Contains_KnownHash( |
92 | | - op: *mut PyObject, |
93 | | - key: *mut PyObject, |
94 | | - hash: crate::Py_hash_t, |
95 | | - ) -> c_int; |
| 45 | +// skipped PyDict_SetDefault |
| 46 | +// skipped PyDict_SetDefaultRef |
96 | 47 |
|
97 | | - #[cfg(not(Py_3_10))] |
98 | | - #[cfg(not(PyPy))] |
99 | | - pub fn _PyDict_Contains(mp: *mut PyObject, key: *mut PyObject, hash: Py_ssize_t) -> c_int; |
100 | | -} |
| 48 | +// skipped PyDict_GET_SIZE |
| 49 | +// skipped PyDict_ContainsString |
| 50 | + |
| 51 | +// skipped private _PyDict_NewPresized |
| 52 | + |
| 53 | +// skipped PyDict_Pop |
| 54 | +// skipped PyDict_PopString |
| 55 | + |
| 56 | +// skipped private _PyDict_Pop |
| 57 | + |
| 58 | +// skipped PY_FOREACH_DICT_EVENT |
| 59 | +// skipped PyDict_WatchEvent |
| 60 | + |
| 61 | +// skipped PyDict_WatchCallback |
| 62 | + |
| 63 | +// skipped PyDict_AddWatcher |
| 64 | +// skipped PyDict_ClearWatcher |
| 65 | + |
| 66 | +// skipped PyDict_Watch |
| 67 | +// skipped PyDict_Unwatch |
0 commit comments