1228063Sbapt/*	$OpenBSD: ohash_int.h,v 1.3 2006/01/16 15:52:25 espie Exp $	*/
2228063Sbapt/* $FreeBSD$ */
3228063Sbapt
4228063Sbapt#if HAVE_NBTOOL_CONFIG_H
5228063Sbapt#include "nbtool_config.h"
6228063Sbapt#endif
7228063Sbapt
8228063Sbapt#include <sys/types.h>
9228063Sbapt#include <stddef.h>
10228063Sbapt#include <stdint.h>
11228063Sbapt#include <stdlib.h>
12228063Sbapt#include <string.h>
13228063Sbapt#include "ohash.h"
14228063Sbapt
15228063Sbaptstruct _ohash_record {
16228063Sbapt	u_int32_t	hv;
17228063Sbapt	const char 	*p;
18228063Sbapt};
19228063Sbapt
20228063Sbapt#define DELETED		((const char *)h)
21228063Sbapt#define NONE		(h->size)
22228063Sbapt
23228063Sbapt/* Don't bother changing the hash table if the change is small enough.  */
24228063Sbapt#define MINSIZE		(1UL << 4)
25228063Sbapt#define MINDELETED	4
26