diff options
author | H. Peter Anvin <hpa@zytor.com> | 2017-04-24 00:41:21 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2017-04-24 00:54:51 -0700 |
commit | bbb39579ec340aba9cda4c7033dd934b620423ea (patch) | |
tree | 94a5e00fc63672d2ec15feab825e3c295bfe4111 /Mkfiles | |
parent | bf0bcef3d4975ab964d573fecbe2a8b2960b8120 (diff) | |
download | nasm-bbb39579ec340aba9cda4c7033dd934b620423ea.tar.gz |
hashtbl, strtbl: add hash_free_all(), split strtbl_find()
Add hash_free_all() to factor common code of iterating over all
members of a hash to free them with a single nasm_free().
Split strtbl_find() into strtbl_find() and strtbl_add(). It is very
unlikely that the same call site will want to have both of these
functionalities, and in the end the code for the two functions are
surprisingly different.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'Mkfiles')
0 files changed, 0 insertions, 0 deletions