blob: b6bdf8250d412d147d93db78ef754d29a03ab62c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
|