=================================================================== RCS file: /cvs/mandoc/Attic/man_hash.c,v retrieving revision 1.13 retrieving revision 1.16 diff -u -p -r1.13 -r1.16 --- mandoc/Attic/man_hash.c 2009/09/16 20:49:06 1.13 +++ mandoc/Attic/man_hash.c 2010/01/01 17:14:28 1.16 @@ -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.16 2010/01/01 17:14:28 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -14,6 +14,12 @@ * 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 + #include #include #include @@ -21,10 +27,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) { @@ -48,7 +56,6 @@ man_hash_init(void) assert(j < 6); } } - int man_hash_find(const char *tmp)