summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 12:13:01 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 12:13:01 +0100
commitc9553876ae88b7f1494cff826c8f7a08c2ac5614 (patch)
tree63f4ec83ec78ca95db74b03bd033a4953d27d653 /Python/codecs.c
parent0b2d71bc70c32560853fa91f58dc37af8f08090c (diff)
downloadcpython-git-c9553876ae88b7f1494cff826c8f7a08c2ac5614.tar.gz
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 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions