X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/ea750887d0d1dfad81d0f7e066c720defe06e08a..a38956d48605c5b82c42f5023ba51e80dc6e3728:/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); } -