Skip to content

Commit

Permalink
Declare _Py_HashPointer() as an alias to Py_HashPointer()
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Dec 5, 2023
1 parent 462c5e8 commit 5415271
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Include/cpython/pyhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

/* Helpers for hash functions */
PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
PyAPI_FUNC(Py_hash_t) _Py_HashPointer(const void*);

// Kept for backward compatibility
#define _Py_HashPointer Py_HashPointer


/* hash function definition */
Expand Down
4 changes: 0 additions & 4 deletions Include/internal/pycore_pyhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ _Py_HashPointerRaw(const void *ptr)
return (Py_hash_t)x;
}


// Kept for backward compatibility
#define _Py_HashPointer Py_HashPointer

// Export for '_datetime' shared extension
PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t);

Expand Down

0 comments on commit 5415271

Please sign in to comment.