summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 11:13:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 11:13:01 (GMT)
commitc9553876ae88b7f1494cff826c8f7a08c2ac5614 (patch)
tree63f4ec83ec78ca95db74b03bd033a4953d27d653 /Lib
parent0b2d71bc70c32560853fa91f58dc37af8f08090c (diff)
downloadcpython-c9553876ae88b7f1494cff826c8f7a08c2ac5614.zip
cpython-c9553876ae88b7f1494cff826c8f7a08c2ac5614.tar.gz
cpython-c9553876ae88b7f1494cff826c8f7a08c2ac5614.tar.bz2
Simplify implementation of hashtable.c
Issue #26588: Remove copy_data, free_data and get_data_size callbacks from hashtable.h. These callbacks are not used in Python and makes the code more complex. Remove also the _Py_HASHTABLE_ENTRY_DATA_AS_VOID_P() macro which uses an unsafe pointer dereference (can cause memory alignment issue). Replace the macro usage with _Py_HASHTABLE_ENTRY_READ_DATA() which is implemented with the safe memcpy() function.
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions