aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_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 /mdoc_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 'mdoc_hash.c')
-rw-r--r--mdoc_hash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mdoc_hash.c b/mdoc_hash.c
index 757437c0..678ae0e3 100644
--- a/mdoc_hash.c
+++ b/mdoc_hash.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_hash.c,v 1.10 2009/09/16 20:49:06 kristaps Exp $ */
+/* $Id: mdoc_hash.c,v 1.11 2009/09/17 07:41:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -27,7 +27,10 @@
static u_char table[27 * 12];
-
+/*
+ * XXX - this hash has global scope, so if intended for use as a library
+ * with multiple callers, it will need re-invocation protection.
+ */
void
mdoc_hash_init(void)
{
@@ -54,7 +57,6 @@ mdoc_hash_init(void)
}
}
-
int
mdoc_hash_find(const char *p)
{
@@ -84,4 +86,3 @@ mdoc_hash_find(const char *p)
return(MDOC_MAX);
}
-