Return to man_hash.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.31, 2015/04/02 22:48:17 | version 1.32, 2015/04/18 17:01:58 | ||
---|---|---|---|
|
|
||
static unsigned char table[26 * HASH_DEPTH]; | static unsigned char table[26 * HASH_DEPTH]; | ||
/* | |||
* XXX - this hash has global scope, so if intended for use as a library | |||
* with multiple callers, it will need re-invocation protection. | |||
*/ | |||
void | void | ||
man_hash_init(void) | man_hash_init(void) | ||
{ | { | ||
int i, j, x; | int i, j, x; | ||
if (*table != '\0') | |||
return; | |||
memset(table, UCHAR_MAX, sizeof(table)); | memset(table, UCHAR_MAX, sizeof(table)); | ||