summaryrefslogtreecommitdiffstats
path: root/hash.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-11-01 06:47:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-11-01 06:47:29 -0700
commitbc4e96982da873a92f218010470ba65b1ef2a6e3 (patch)
tree8b75e9fef5a55f7c626ff6c8a85cc67f69a8efc7 /hash.h
parentd40e8bd6d7956f757bffd34c7288fd996e617c1e (diff)
downloadtxr-bc4e96982da873a92f218010470ba65b1ef2a6e3.tar.gz
txr-bc4e96982da873a92f218010470ba65b1ef2a6e3.tar.bz2
txr-bc4e96982da873a92f218010470ba65b1ef2a6e3.zip
hash: improve new hash_iter interface.
Most calls to hash_iter_next are passing a null parameter for the object; only hash_next uses that parameter. Let's make hash_iter_next a wrapper which doesn't have that parameter. This interface will soon be exposed to other source files, so it's important to streamline it. * hash.c (hash_iter_next_impl): New function, exact copy of hash_iter_next. (hash_iter_next): Reduced to wrapper for hash_iter_next_impl, with one less argument. (hash_next): Call hash_iter_next_impl instead of hash_iter_next. (maphash, group_by, group_reduce, hash_uni, hash_diff, hash_symdiff, hash_isec, hash_subset, hash_update, hash_revget, hash_invert): Remove null argument from hash_iter_next calls.
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions