summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2005-06-30 23:03:37 +0000
committerDJ Delorie <dj@delorie.com>2005-06-30 23:03:37 +0000
commitc348aed31ffdd2d9f0da9d177c5f78cc6ecdc977 (patch)
tree928ceb116b391fac415d51498e6d00ed86bbfb9f /include
parent9bbc7160a8e1ba0bd9dec7e03e17e2b773d6c63a (diff)
downloadgdb-c348aed31ffdd2d9f0da9d177c5f78cc6ecdc977.tar.gz
merge from gcc
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/hashtab.h9
2 files changed, 14 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 107913db6e2..22df3662d81 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-30 Daniel Berlin <dberlin@dberlin.org>
+
+ * hashtab.h (HTAB_DELETED_ENTRY): New macro.
+ (HTAB_EMPTY_ENTRY): New macro.
+
2005-06-20 Geoffrey Keating <geoffk@apple.com>
* libiberty.h (strverscmp): Prototype.
diff --git a/include/hashtab.h b/include/hashtab.h
index 122ff9d65bc..77eee14e94f 100644
--- a/include/hashtab.h
+++ b/include/hashtab.h
@@ -81,6 +81,15 @@ typedef void (*htab_free) (void *);
typedef void *(*htab_alloc_with_arg) (void *, size_t, size_t);
typedef void (*htab_free_with_arg) (void *, void *);
+/* This macro defines reserved value for empty table entry. */
+
+#define HTAB_EMPTY_ENTRY ((PTR) 0)
+
+/* This macro defines reserved value for table entry which contained
+ a deleted element. */
+
+#define HTAB_DELETED_ENTRY ((PTR) 1)
+
/* Hash tables are of the following type. The structure
(implementation) of this type is not needed for using the hash
tables. All work with hash table should be executed only through