diff options
author | Victor Stinner <vstinner@python.org> | 2023-11-15 00:19:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 00:19:20 (GMT) |
commit | 62802b6228f001e1a4af6ac668a21d2dcec0ce57 (patch) | |
tree | 586ea64bb854e42a242751f5f2f2ab90c768375b /Include/cpython | |
parent | 9302f05f9af07332c414b3c19003efd1b1763cf3 (diff) | |
download | cpython-62802b6228f001e1a4af6ac668a21d2dcec0ce57.zip cpython-62802b6228f001e1a4af6ac668a21d2dcec0ce57.tar.gz cpython-62802b6228f001e1a4af6ac668a21d2dcec0ce57.tar.bz2 |
gh-111545: Add Include/cpython/pyhash.h header file (#112063)
Move non-limited C API to a new Include/cpython/pyhash.h header file.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/pyhash.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/cpython/pyhash.h b/Include/cpython/pyhash.h new file mode 100644 index 0000000..62ae608 --- /dev/null +++ b/Include/cpython/pyhash.h @@ -0,0 +1,13 @@ +#ifndef Py_CPYTHON_HASH_H +# error "this header file must not be included directly" +#endif + +/* hash function definition */ +typedef struct { + Py_hash_t (*const hash)(const void *, Py_ssize_t); + const char *name; + const int hash_bits; + const int seed_bits; +} PyHash_FuncDef; + +PyAPI_FUNC(PyHash_FuncDef*) PyHash_GetFuncDef(void); |