summaryrefslogtreecommitdiffstatshomepage
path: root/man_hash.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-17 07:41:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-17 07:41:28 +0000
commit3f648213cd789e9c307f834875f09da5e1d86ab1 (patch)
treeaa52ea85d2cdaabca340865f79a922ab1a8c21e9 /man_hash.c
parent6f8fe1982a3b763cad6bc6f48f3dc1c2f19281d9 (diff)
downloadmandoc-3f648213cd789e9c307f834875f09da5e1d86ab1.tar.gz
mandoc-3f648213cd789e9c307f834875f09da5e1d86ab1.tar.zst
mandoc-3f648213cd789e9c307f834875f09da5e1d86ab1.zip
ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding).
More html work.
Diffstat (limited to 'man_hash.c')
-rw-r--r--man_hash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/man_hash.c b/man_hash.c
index 276320cb..2616b82c 100644
--- a/man_hash.c
+++ b/man_hash.c
@@ -1,4 +1,4 @@
-/* $Id: man_hash.c,v 1.13 2009/09/16 20:49:06 kristaps Exp $ */
+/* $Id: man_hash.c,v 1.14 2009/09/17 07:41:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -21,10 +21,12 @@
#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)
{
@@ -49,7 +51,6 @@ man_hash_init(void)
}
}
-
int
man_hash_find(const char *tmp)
{