aboutsummaryrefslogtreecommitdiff
path: root/6.5/hash.h
blob: b32e0d4c3cc1c4fa030a72aa3e1cb21839882cd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);