summaryrefslogtreecommitdiff
path: root/bfd/libbfd-in.h
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-03-10 00:29:35 +0000
committerBen Elliston <bje@au.ibm.com>2005-03-10 00:29:35 +0000
commit1c03186a46bee4c6e7efb63ab591370fc164a605 (patch)
tree6a562ced5098afee6f514cbc3d4cff8b7923402d /bfd/libbfd-in.h
parent73d46c7ce136b9d2e640ee3e933dedba12215f63 (diff)
downloadgdb-1c03186a46bee4c6e7efb63ab591370fc164a605.tar.gz
* archive.c: Include hashtab.h.
(struct ar_cache): Rename `arelt' to `arbfd' and remove `next'. (_bfd_look_for_bfd_in_cache): Reimplement using htab_find. (hash_file_ptr): New function. (eq_file_ptr): Likewise. (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table. * libbfd-in.h: Include hashtab.h. (struct artdata): Change `cache' member type to htab_t. * libbfd.h: Rebuild.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r--bfd/libbfd-in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 396ece3adc1..cc65a56301f 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -23,6 +23,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#include "hashtab.h"
+
/* Align an address upward to a boundary, expressed as a number of bytes.
E.g. align to an 8-byte boundary with argument of 8. Take care never
to wrap around if the address is within boundary-1 of the end of the
@@ -57,7 +59,7 @@ struct bfd_in_memory
struct artdata {
file_ptr first_file_filepos;
/* Speed up searching the armap */
- struct ar_cache *cache;
+ htab_t cache;
bfd *archive_head; /* Only interesting in output routines */
carsym *symdefs; /* the symdef entries */
symindex symdef_count; /* how many there are */