summaryrefslogtreecommitdiffstats
path: root/hash.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-10-29 23:12:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-10-29 23:12:48 -0700
commitd131be5ddd9758bc497ed5eb686b21d05b8aa5c8 (patch)
tree9a0d0b3836f2410c2609bf7c032a8c4e2ca4168e /hash.h
parent5f5d7f2e69b9f80dcbbe3f6e0626e4664db70364 (diff)
downloadtxr-d131be5ddd9758bc497ed5eb686b21d05b8aa5c8.tar.gz
txr-d131be5ddd9758bc497ed5eb686b21d05b8aa5c8.tar.bz2
txr-d131be5ddd9758bc497ed5eb686b21d05b8aa5c8.zip
hash: stack-allocated iterators.
* hash.c (hash_iter_init, us_hash_iter_init, hash_iter_next, hash_iter_peek): New static functions, made from hash_begin, hash_next and hash_peek internals. (hash_begin, hash_next, hash_peek): Turned into wrappers for hash_iter_init, hash_iter_next, hash_iter_peek. (maphash, group_by, group_reduce, hash_uni, hash_diff, hash_symdiff, hash_isec, hash_subset, hash_update, hash_revget, hash_invert): Use stack-allocated struct hash_iter instead of heap allocated object from hash_begin.
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions