summaryrefslogtreecommitdiff
path: root/gas/hash.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-04-29 16:56:12 +0000
committerH.J. Lu <hjl@lucon.org>2005-04-29 16:56:12 +0000
commit6d4986cdcad4a426d4b8cf4e0cf1a7bd5888c948 (patch)
tree32d61022b5334a195464017f97cf4ffa48d86831 /gas/hash.h
parentca1608659536f2ddc6ed516a27c1a58171cffc4e (diff)
downloadbinutils-redhat-6d4986cdcad4a426d4b8cf4e0cf1a7bd5888c948.tar.gz
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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/hash.h b/gas/hash.h
index 4556f10a79..09c52f8edb 100644
--- a/gas/hash.h
+++ b/gas/hash.h
@@ -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. */