diff options
Diffstat (limited to 'Include/cpython/pyhash.h')
-rw-r--r-- | Include/cpython/pyhash.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/cpython/pyhash.h b/Include/cpython/pyhash.h index 6f7113d..396c208 100644 --- a/Include/cpython/pyhash.h +++ b/Include/cpython/pyhash.h @@ -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 */ @@ -33,3 +35,5 @@ typedef struct { } PyHash_FuncDef; PyAPI_FUNC(PyHash_FuncDef*) PyHash_GetFuncDef(void); + +PyAPI_FUNC(Py_hash_t) Py_HashPointer(const void *ptr); |