summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-22 13:49:37 (GMT)
committerGitHub <noreply@github.com>2023-07-22 13:49:37 (GMT)
commit89f987544860d1360e6232b6f52b8ced92a4d690 (patch)
tree907da00214a5c77ab33084321a66cc936798642f /Python
parent756add081ead8fa9aeb11ac178e581ba2450f296 (diff)
downloadcpython-89f987544860d1360e6232b6f52b8ced92a4d690.zip
cpython-89f987544860d1360e6232b6f52b8ced92a4d690.tar.gz
cpython-89f987544860d1360e6232b6f52b8ced92a4d690.tar.bz2
gh-106320: Move private _PyHash API to the internal C API (#107026)
* No longer export most private _PyHash symbols, only export the ones which are needed by shared extensions. * Modules/_xxtestfuzz/fuzzer.c now uses the internal C API.
Diffstat (limited to 'Python')
-rw-r--r--Python/hashtable.c1
-rw-r--r--Python/pyhash.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Python/hashtable.c b/Python/hashtable.c
index 09501de..0f07cd2 100644
--- a/Python/hashtable.c
+++ b/Python/hashtable.c
@@ -46,6 +46,7 @@
#include "Python.h"
#include "pycore_hashtable.h"
+#include "pycore_pyhash.h" // _Py_HashPointerRaw()
#define HASHTABLE_MIN_SIZE 16
#define HASHTABLE_HIGH 0.50
diff --git a/Python/pyhash.c b/Python/pyhash.c
index d5ac9f8..b2bdab5 100644
--- a/Python/pyhash.c
+++ b/Python/pyhash.c
@@ -4,6 +4,7 @@
All the utility functions (_Py_Hash*()) return "-1" to signify an error.
*/
#include "Python.h"
+#include "pycore_pyhash.h" // _Py_HashSecret_t
#ifdef __APPLE__
# include <libkern/OSByteOrder.h>