aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/hashtable.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-12-06 15:09:22 +0100
committerGitHub <noreply@github.com>2023-12-06 15:09:22 +0100
commit828451dfde324f9499ffebc023a22b84dc5a125b (patch)
treeceee17c26f9c9238b602ef9156e6eb8530d032f1 /Python/hashtable.c
parentf8852634edf1232ac1aa4561e34796b52f9f7aa2 (diff)
downloadcpython-828451dfde324f9499ffebc023a22b84dc5a125b.tar.gz
cpython-828451dfde324f9499ffebc023a22b84dc5a125b.zip
gh-111545: Add Py_HashPointer() function (#112096)
* Implement _Py_HashPointerRaw() as a static inline function. * Add Py_HashPointer() tests to test_capi.test_hash. * Keep _Py_HashPointer() function as an alias to Py_HashPointer().
Diffstat (limited to 'Python/hashtable.c')
-rw-r--r--Python/hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/hashtable.c b/Python/hashtable.c
index 8f5e8168ba1..faf68fe4ff0 100644
--- a/Python/hashtable.c
+++ b/Python/hashtable.c
@@ -45,7 +45,7 @@
*/
#include "Python.h"
-#include "pycore_hashtable.h"
+#include "pycore_hashtable.h" // export _Py_hashtable_new()
#include "pycore_pyhash.h" // _Py_HashPointerRaw()
#define HASHTABLE_MIN_SIZE 16