1
1
#[ cfg( not( any( Py_LIMITED_API , PyPy ) ) ) ]
2
2
use crate :: pyport:: { Py_hash_t , Py_ssize_t } ;
3
- #[ cfg( not( any( Py_LIMITED_API , PyPy , GraalPy ) ) ) ]
4
- use std:: os:: raw:: c_char;
5
3
#[ cfg( not( any( Py_LIMITED_API , PyPy ) ) ) ]
6
4
use std:: os:: raw:: c_void;
7
5
@@ -22,29 +20,6 @@ pub const _PyHASH_MULTIPLIER: c_ulong = 1000003;
22
20
23
21
// skipped non-limited _Py_HashSecret_t
24
22
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
-
48
23
// skipped Py_HASH_CUTOFF
49
24
50
25
pub const Py_HASH_EXTERNAL : c_int = 0 ;
0 commit comments