diff options
Diffstat (limited to '6.5/hash.h')
-rw-r--r-- | 6.5/hash.h | 18 |
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); |