diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-17 07:41:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-17 07:41:28 +0000 |
commit | 3f648213cd789e9c307f834875f09da5e1d86ab1 (patch) | |
tree | aa52ea85d2cdaabca340865f79a922ab1a8c21e9 /man_hash.c | |
parent | 6f8fe1982a3b763cad6bc6f48f3dc1c2f19281d9 (diff) | |
download | mandoc-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.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) { |