diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-06-27 13:30:22 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-07-01 11:05:59 +0100 |
commit | 9658dc39630b8ac4e849fb529a53902da5fc2b1f (patch) | |
tree | dd5246f204e11dd0a90c874ec81dc705f23d58db /config | |
parent | 3e10cffc9872fda4519f76ba487fd108551a179f (diff) | |
download | gdb-9658dc39630b8ac4e849fb529a53902da5fc2b1f.zip gdb-9658dc39630b8ac4e849fb529a53902da5fc2b1f.tar.gz gdb-9658dc39630b8ac4e849fb529a53902da5fc2b1f.tar.bz2 |
libctf: add hash traversal helpers
There are two, ctf_dynhash_iter and ctf_dynhash_iter_remove: the latter
lets you return a nonzero value to remove the element being iterated
over.
Used in the next commit.
libctf/
* ctf-impl.h (ctf_hash_iter_f): New.
(ctf_dynhash_iter): New declaration.
(ctf_dynhash_iter_remove): New declaration.
* ctf-hash.c (ctf_dynhash_iter): Define.
(ctf_dynhash_iter_remove): Likewise.
(ctf_hashtab_traverse): New.
(ctf_hashtab_traverse_remove): Likewise.
(struct ctf_traverse_cb_arg): Likewise.
(struct ctf_traverse_remove_cb_arg): Likewise.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions