aboutsummaryrefslogtreecommitdiff
path: root/6.5/hash.h
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-05-09 18:52:09 +0530
committersinanmohd <sinan@firemail.cc>2023-05-10 08:25:12 +0530
commit73526f53e58c476507c44fd94412b04244ab0930 (patch)
treea8e49d8c9b7985d869b43c4be31fbc06ab1f7476 /6.5/hash.h
parent3f761f64d02480c81177e39af2f00f0e76b6f113 (diff)
6.5 initial commit
Diffstat (limited to '6.5/hash.h')
-rw-r--r--6.5/hash.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/6.5/hash.h b/6.5/hash.h
new file mode 100644
index 0000000..b32e0d4
--- /dev/null
+++ b/6.5/hash.h
@@ -0,0 +1,18 @@
+#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);
+void undef(struct nlist *hashtab[], uint32_t hashsize, char *name);
+void phashtab(struct nlist *hastab[], int hashsize);
+void hashfree(struct nlist *hastab[], int hashsize);