11#[ cfg( not( any( Py_LIMITED_API , PyPy ) ) ) ]
22use crate :: pyport:: { Py_hash_t , Py_ssize_t } ;
3- #[ cfg( not( any( Py_LIMITED_API , PyPy , GraalPy ) ) ) ]
4- use std:: os:: raw:: c_char;
53#[ cfg( not( any( Py_LIMITED_API , PyPy ) ) ) ]
64use std:: os:: raw:: c_void;
75
@@ -22,29 +20,6 @@ pub const _PyHASH_MULTIPLIER: c_ulong = 1000003;
2220
2321// skipped non-limited _Py_HashSecret_t
2422
25- #[ cfg( not( any( Py_LIMITED_API , PyPy , GraalPy ) ) ) ]
26- #[ repr( C ) ]
27- #[ derive( Copy , Clone ) ]
28- pub struct PyHash_FuncDef {
29- pub hash : Option < extern "C" fn ( arg1 : * const c_void , arg2 : Py_ssize_t ) -> Py_hash_t > ,
30- pub name : * const c_char ,
31- pub hash_bits : c_int ,
32- pub seed_bits : c_int ,
33- }
34-
35- #[ cfg( not( any( Py_LIMITED_API , PyPy , GraalPy ) ) ) ]
36- impl Default for PyHash_FuncDef {
37- #[ inline]
38- fn default ( ) -> Self {
39- unsafe { std:: mem:: zeroed ( ) }
40- }
41- }
42-
43- extern "C" {
44- #[ cfg( not( any( Py_LIMITED_API , PyPy , GraalPy ) ) ) ]
45- pub fn PyHash_GetFuncDef ( ) -> * mut PyHash_FuncDef ;
46- }
47-
4823// skipped Py_HASH_CUTOFF
4924
5025pub const Py_HASH_EXTERNAL : c_int = 0 ;
0 commit comments