diff options
author | Doug Evans <dje@google.com> | 2012-07-13 23:39:46 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-07-13 23:39:46 +0000 |
commit | 0429544a874ce825dffad59bf2b5c0e41d229060 (patch) | |
tree | ad3d38dd0ee6805e5865606d8efc710883a8efa6 /include | |
parent | a2b6eff5c47ee70428e43a2b9b089d41c4913d89 (diff) | |
download | gdb-0429544a874ce825dffad59bf2b5c0e41d229060.zip gdb-0429544a874ce825dffad59bf2b5c0e41d229060.tar.gz gdb-0429544a874ce825dffad59bf2b5c0e41d229060.tar.bz2 |
include/
* filenames.h: #include "hashtab.h".
(filename_hash, filename_eq): Declare.
libiberty/
* filename_cmp.c (filename_hash, filename_eq): New functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/filenames.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 08e1a79..38e30cf 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2012-07-13 Doug Evans <dje@google.com> + + * filenames.h: #include "hashtab.h". + (filename_hash, filename_eq): Declare. + 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * elf/s390.h (START_RELOC_NUMBERS): Define R_390_IRELATIVE reloc. diff --git a/include/filenames.h b/include/filenames.h index 75ec330..e799a51 100644 --- a/include/filenames.h +++ b/include/filenames.h @@ -26,6 +26,8 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. #ifndef FILENAMES_H #define FILENAMES_H +#include "hashtab.h" /* for hashval_t */ + #ifdef __cplusplus extern "C" { #endif @@ -84,6 +86,10 @@ extern int filename_cmp (const char *s1, const char *s2); extern int filename_ncmp (const char *s1, const char *s2, size_t n); +extern hashval_t filename_hash (const void *s); + +extern int filename_eq (const void *s1, const void *s2); + #ifdef __cplusplus } #endif |