aboutsummaryrefslogtreecommitdiff
path: root/libctf/ChangeLog
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-06-27 13:30:22 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-07-01 11:05:59 +0100
commit9658dc39630b8ac4e849fb529a53902da5fc2b1f (patch)
treedd5246f204e11dd0a90c874ec81dc705f23d58db /libctf/ChangeLog
parent3e10cffc9872fda4519f76ba487fd108551a179f (diff)
downloadfsf-binutils-gdb-9658dc39630b8ac4e849fb529a53902da5fc2b1f.zip
fsf-binutils-gdb-9658dc39630b8ac4e849fb529a53902da5fc2b1f.tar.gz
fsf-binutils-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 'libctf/ChangeLog')
-rw-r--r--libctf/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index dd3113b..21b62e1 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,5 +1,17 @@
2019-06-28 Nick Alcock <nick.alcock@oracle.com>
+ * 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.
+
+2019-06-28 Nick Alcock <nick.alcock@oracle.com>
+
* ctf-hash.c (ctf_dynhash_remove): Call with a mocked-up element.
2019-06-28 Nick Alcock <nick.alcock@oracle.com>