aboutsummaryrefslogtreecommitdiff
path: root/include/hashtab.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hashtab.h')
-rw-r--r--include/hashtab.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hashtab.h b/include/hashtab.h
index 7acb5eb28..f7bd4ae69 100644
--- a/include/hashtab.h
+++ b/include/hashtab.h
@@ -183,6 +183,11 @@ extern htab_eq htab_eq_pointer;
/* A hash function for null-terminated strings. */
extern hashval_t htab_hash_string PARAMS ((const PTR));
+/* An iterative hash function for arbitrary data. */
+extern hashval_t iterative_hash PARAMS ((const PTR, size_t, hashval_t));
+/* Shorthand for hashing something with an intrinsic size. */
+#define iterative_hash_object(OB,INIT) iterative_hash (&OB, sizeof (OB), INIT)
+
#ifdef __cplusplus
}
#endif /* __cplusplus */