From 3f648213cd789e9c307f834875f09da5e1d86ab1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 17 Sep 2009 07:41:28 +0000 Subject: ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding). More html work. --- mdoc_hash.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mdoc_hash.c') 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 * @@ -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); } - -- cgit v1.2.3