]> git.ipfire.org Git - thirdparty/gcc.git/commit
hashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions).
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 8 Mar 2000 23:44:29 +0000 (23:44 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 8 Mar 2000 23:44:29 +0000 (23:44 +0000)
commit5194cf089037ca4d68896c4452582b526f603b96
tree6ece5cb52df1c25d061be01b92e2ce0ecdf35f8d
parent8ebb00d547c9267af25015ef737ff393287eb36b
hashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions).

* hashtab.c: Remove debugging variables (all_searches,
all_collisions, all_expansions). Delete
all_hash_table_collisions.
(create_hash_table, delete_hash_table, empty_hash_table,
find_hash_table_entry, remove_element_from_hash_table_entry,
clear_hash_table_slot, traverse_hash_table, hash_table_size,
hash_table_elements_number, hash_table_collisions): Rename to:
htab_create, htab_delete, htab_empty, htab_find_slot,
htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
htab_elements, htab_collisions.
(htab_find): New function, handles common case where you don't
plan to add or delete an entry.
(htab_expand): Don't create a whole new table, just a new
entry vector.
(htab_find_slot): Simplify logic.

* hashtab.h (hash_table_t): Rename to htab_t.
(struct hash_table): Rename to struct htab.  Shorten element
names.  Reorder elements by size.
(htab_hash, htab_eq, htab_trav): New typedefs for the callback
function pointers.
(hash_table_entry_t): Discard; just use void * for element
type.

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