diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-10-29 23:12:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-10-29 23:12:48 -0700 |
commit | d131be5ddd9758bc497ed5eb686b21d05b8aa5c8 (patch) | |
tree | 9a0d0b3836f2410c2609bf7c032a8c4e2ca4168e /hash.h | |
parent | 5f5d7f2e69b9f80dcbbe3f6e0626e4664db70364 (diff) | |
download | txr-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