diff options
author | DJ Delorie <dj@redhat.com> | 2006-05-01 19:36:27 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2006-05-01 19:36:27 +0000 |
commit | aa149cf7d101f4b86677975a3439ce84710f8a4a (patch) | |
tree | bcdad4fe39388e2b336a4717383eaf9fbb70355a /bfd/bfd-in.h | |
parent | 8608915fb197e364c43f872d756fe29380dbc3fd (diff) | |
download | gdb-aa149cf7d101f4b86677975a3439ce84710f8a4a.zip gdb-aa149cf7d101f4b86677975a3439ce84710f8a4a.tar.gz gdb-aa149cf7d101f4b86677975a3439ce84710f8a4a.tar.bz2 |
* bfd-in.h (bfd_hash_table): Add count field.
* bfd-in2.h: Regenerate.
* hash.c (higher_prime_number): New.
(bfd_hash_table_inint_n): Init count field.
(bfd_hash_lookup): Grow table as needed.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 9daa578..5c2f05d 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -376,6 +376,8 @@ struct bfd_hash_table struct bfd_hash_entry **table; /* The number of slots in the hash table. */ unsigned int size; + /* The number of entries in the hash table. */ + unsigned int count; /* The size of elements. */ unsigned int entsize; /* A function used to create new elements in the hash table. The |