Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5415271

Browse filesBrowse files
committed
Declare _Py_HashPointer() as an alias to Py_HashPointer()
1 parent 462c5e8 commit 5415271
Copy full SHA for 5415271

File tree

Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed

‎Include/cpython/pyhash.h

Copy file name to clipboardExpand all lines: Include/cpython/pyhash.h
+3-1Lines 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

Copy file name to clipboardExpand all lines: Include/internal/pycore_pyhash.h
-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.