diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-29 16:56:12 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-29 16:56:12 +0000 |
commit | 7e70f1afa7a6e5d343057db95bbfbe30701a2911 (patch) | |
tree | e61f9c49b93527cd42a401aa60aa13a7cd6639f7 /gas/hash.h | |
parent | cba1200696dfad3a4748d3bf01b98f156bdfc3a2 (diff) | |
download | fsf-binutils-gdb-7e70f1afa7a6e5d343057db95bbfbe30701a2911.zip fsf-binutils-gdb-7e70f1afa7a6e5d343057db95bbfbe30701a2911.tar.gz fsf-binutils-gdb-7e70f1afa7a6e5d343057db95bbfbe30701a2911.tar.bz2 |
2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
* hash.c: Undo the last change.
* hash.h: Likewise.
Diffstat (limited to 'gas/hash.h')
-rw-r--r-- | gas/hash.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -51,11 +51,23 @@ extern const char *hash_insert (struct hash_control *, extern const char *hash_jam (struct hash_control *, const char *key, PTR value); +/* Replace an existing entry in a hash table. This returns the old + value stored for the entry. If the entry is not found in the hash + table, this does nothing and returns NULL. */ + +extern PTR hash_replace (struct hash_control *, const char *key, + PTR value); + /* Find an entry in a hash table, returning its value. Returns NULL if the entry is not found. */ extern PTR hash_find (struct hash_control *, const char *key); +/* Delete an entry from a hash table. This returns the value stored + for that entry, or NULL if there is no such entry. */ + +extern PTR hash_delete (struct hash_control *, const char *key); + /* Traverse a hash table. Call the function on every entry in the hash table. */ |