Lines Matching refs:hash
1 /* $NetBSD: hash.c,v 1.7 2002/01/21 19:49:52 tv Exp $ */
36 __RCSID("$NetBSD: hash.c,v 1.7 2002/01/21 19:49:52 tv Exp $");
38 __FBSDID("$FreeBSD: releng/10.2/usr.bin/xlint/lint2/hash.c 148723 2005-08-05 09:07:42Z stefanf $");
41 * XXX Really need a generalized hash table package
52 /* pointer to hash table, initialized in inithash() */
55 static int hash(const char *);
58 * Initialize hash table.
71 * Compute hash value from a string.
74 hash(const char *s)
88 * Look for a hash table entry. If no hash table entry for the
100 h = hash(s);
129 * Call function f for each name in the hash table.
147 * Free all contents of the hash table that this module allocated.
156 err(1, "_destroyhash called on main hash table");