-/* $Id: man_hash.c,v 1.13 2009/09/16 20:49:06 kristaps Exp $ */
+/* $Id: man_hash.c,v 1.16 2010/01/01 17:14:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <sys/types.h>
+
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include "libman.h"
-
static u_char table[26 * 6];
-
+/*
+ * XXX - this hash has global scope, so if intended for use as a library
+ * with multiple callers, it will need re-invocation protection.
+ */
void
man_hash_init(void)
{
}
}
-
int
man_hash_find(const char *tmp)
{