aboutsummaryrefslogtreecommitdiff
path: root/6.6/hash.h
diff options
context:
space:
mode:
Diffstat (limited to '6.6/hash.h')
-rw-r--r--6.6/hash.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/6.6/hash.h b/6.6/hash.h
new file mode 100644
index 0000000..b6bdf82
--- /dev/null
+++ b/6.6/hash.h
@@ -0,0 +1,19 @@
+#include <stdint.h>
+
+#ifndef HASH_H
+
+struct nlist {
+ struct nlist *next;
+ char *name;
+ char *defn;
+};
+
+#define HASH_H
+#endif
+
+struct nlist *install(struct nlist *hashtab[], uint32_t hashsize,
+ char *name, char *defn);
+struct nlist *lookup(struct nlist *hashtab[], uint32_t hashsize, char *s);
+void undef(struct nlist *hashtab[], uint32_t hashsize, char *name);
+void phashtab(struct nlist *hastab[], int hashsize);
+void hashfree(struct nlist *hastab[], int hashsize);