Add a flag to asection, linker_has_input, and use it to reliably
[deliverable/binutils-gdb.git] / gdb / bcache.h
index 1350bea66a029bafa0fe073a5c814c91d673ef85..6b32c577d4f6348ea53e12ef601b38fee68dbdfe 100644 (file)
@@ -1,7 +1,7 @@
 /* Include file cached obstack implementation.
    Written by Fred Fish <fnf@cygnus.com>
    Rewritten by Jim Blandy <jimb@cygnus.com>
-   Copyright 1999 Free Software Foundation, Inc.
+   Copyright 1999, 2000 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -95,14 +95,14 @@ struct bcache {
   struct obstack cache;
 
   /* How many hash buckets we're using.  */
-  int num_buckets;
+  unsigned int num_buckets;
   
   /* Hash buckets.  This table is allocated using malloc, so when we
      grow the table we can return the old table to the system.  */
   struct bstring **bucket;
 
   /* Statistics.  */
-  long unique_count;   /* number of unique strings */
+  unsigned long unique_count;  /* number of unique strings */
   long total_count;    /* total number of strings cached, including dups */
   long unique_size;    /* size of unique strings, in bytes */
   long total_size;      /* total number of bytes cached, including dups */
@@ -125,5 +125,6 @@ extern void free_bcache (struct bcache *bcache);
    kind of data BCACHE holds.  Statistics are printed using
    `printf_filtered' and its ilk.  */
 extern void print_bcache_statistics (struct bcache *bcache, char *type);
-
+/* The hash function */
+extern unsigned long hash(void *addr, int length);
 #endif /* BCACHE_H */
This page took 0.036022 seconds and 4 git commands to generate.