1 /* $OpenBSD: ohash_int.h,v 1.2 2004/06/22 20:00:16 espie Exp $ */ 2 3 #include <sys/types.h> 4 #include <stddef.h> 5 #include <stdlib.h> 6 #include <string.h> 7 #include "ohash.h" 8 9 struct _ohash_record { 10 u_int32_t hv; 11 const char *p; 12 }; 13 14 #define DELETED ((const char *)h) 15 #define NONE (h->size) 16 17 /* Don't bother changing the hash table if the change is small enough. */ 18 #define MINSIZE (1UL << 4) 19 #define MINDELETED 4 20