summaryrefslogtreecommitdiffstats
path: root/Modules/hashtable.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-03-24 21:34:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-03-24 21:34:34 (GMT)
commitd9a735234813fec6df7fe080f46e9cfd5a564c57 (patch)
tree57ed1a023b69e6698deb3f6392abaaa44f5a3fc6 /Modules/hashtable.h
parentdf48b97855b378a13d852656d358ca92ecbe4aa3 (diff)
downloadcpython-d9a735234813fec6df7fe080f46e9cfd5a564c57.zip
cpython-d9a735234813fec6df7fe080f46e9cfd5a564c57.tar.gz
cpython-d9a735234813fec6df7fe080f46e9cfd5a564c57.tar.bz2
Issue #21036: Fix typo in macro name
_PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
Diffstat (limited to 'Modules/hashtable.h')
-rw-r--r--Modules/hashtable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/hashtable.h b/Modules/hashtable.h
index 539e490..a9f9993 100644
--- a/Modules/hashtable.h
+++ b/Modules/hashtable.h
@@ -26,16 +26,16 @@ typedef struct {
/* data follows */
} _Py_hashtable_entry_t;
-#define _PY_HASHTABLE_ENTRY_DATA(ENTRY) \
+#define _Py_HASHTABLE_ENTRY_DATA(ENTRY) \
((char *)(ENTRY) + sizeof(_Py_hashtable_entry_t))
#define _Py_HASHTABLE_ENTRY_DATA_AS_VOID_P(ENTRY) \
- (*(void **)_PY_HASHTABLE_ENTRY_DATA(ENTRY))
+ (*(void **)_Py_HASHTABLE_ENTRY_DATA(ENTRY))
#define _Py_HASHTABLE_ENTRY_READ_DATA(TABLE, DATA, DATA_SIZE, ENTRY) \
do { \
assert((DATA_SIZE) == (TABLE)->data_size); \
- memcpy(DATA, _PY_HASHTABLE_ENTRY_DATA(ENTRY), DATA_SIZE); \
+ memcpy(DATA, _Py_HASHTABLE_ENTRY_DATA(ENTRY), DATA_SIZE); \
} while (0)
typedef Py_uhash_t (*_Py_hashtable_hash_func) (const void *key);