Skip to content

Commit 5415271

Browse files
committed
Declare _Py_HashPointer() as an alias to Py_HashPointer()
1 parent 462c5e8 commit 5415271

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Include/cpython/pyhash.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
/* Helpers for hash functions */
2323
PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
24-
PyAPI_FUNC(Py_hash_t) _Py_HashPointer(const void*);
24+
25+
// Kept for backward compatibility
26+
#define _Py_HashPointer Py_HashPointer
2527

2628

2729
/* hash function definition */

Include/internal/pycore_pyhash.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ _Py_HashPointerRaw(const void *ptr)
2020
return (Py_hash_t)x;
2121
}
2222

23-
24-
// Kept for backward compatibility
25-
#define _Py_HashPointer Py_HashPointer
26-
2723
// Export for '_datetime' shared extension
2824
PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t);
2925

0 commit comments

Comments
 (0)