]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/hashtab.c
hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, change it...
authorZack Weinberg <zack@bitmover.com>
Sat, 23 Oct 1999 15:56:52 +0000 (15:56 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 23 Oct 1999 15:56:52 +0000 (15:56 +0000)
commited38f5d5d8fdaf1c37e4242b203bb0c94191427c
tree3ad8d02ae08a5e2403f87cba3849031590ae8f60
parent5e481b31ee1b68793b8c9b57ed1b946115584241
hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, change it to EMPTY_ENTRY first.

1999-10-23 08:51 -0700  Zack Weinberg  <zack@bitmover.com>

* hashtab.c (find_hash_table_entry): When returning a
DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
(clear_hash_table_slot): New function which deletes an entry
by its position in the table, not its value.
(traverse_hash_table): New function which calls a hook
function for every live entry in the table.

* hashtab.h: Give hash_table_t a struct tag.  Add prototypes
for clear_hash_table_slot and traverse_hash_table.  Correct
prototype of all_hash_table_collisions.

From-SVN: r30138
include/ChangeLog
include/hashtab.h
libiberty/ChangeLog
libiberty/hashtab.c