summaryrefslogtreecommitdiffstats
path: root/contrib/gperf/lib/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gperf/lib/hash.h')
-rw-r--r--contrib/gperf/lib/hash.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/gperf/lib/hash.h b/contrib/gperf/lib/hash.h
new file mode 100644
index 0000000..5dbc92b
--- /dev/null
+++ b/contrib/gperf/lib/hash.h
@@ -0,0 +1,15 @@
+// This may look like C code, but it is really -*- C++ -*-
+
+/*
+Copyright (C) 1988, 1992, 2000 Free Software Foundation
+ written by Doug Lea (dl@rocky.oswego.edu)
+*/
+
+#ifndef _hash_h
+#define _hash_h 1
+
+/* a hash function for char[] arrays using the
+ method described in Aho, Sethi, & Ullman, p 436. */
+extern unsigned int hashpjw (const char *string, unsigned int len);
+
+#endif
OpenPOWER on IntegriCloud