contrib/mdocml/man_hash.c
void
man_hash_init(void)
{
	int		 i, j, x;

	memset(table, UCHAR_MAX, sizeof(table));

	assert(/* LINTED */ 
			MAN_MAX < UCHAR_MAX);

	for (i = 0; i < (int)MAN_MAX; i++) {
		x = man_macronames[i][0];

		assert(isalpha((u_char)x));

		HASH_ROW(x);

		for (j = 0; j < HASH_DEPTH; j++)
			if (UCHAR_MAX == table[x + j]) {
				table[x + j] = (u_char)i;
				break;
			}

		assert(j < 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.
 */
this hash has global scope, so if intended for use as a library
with multiple callers, it will need re-invocation protection.
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)
{
	int		 i, j, x;
	memset(table, UCHAR_MAX, sizeof(table));
	assert( 
			MAN_MAX < UCHAR_MAX);
	for (i = 0; i < (int)MAN_MAX; i++) {
		x = man_macronames[i][0];
		assert(isalpha((u_char)x));
		HASH_ROW(x);
		for (j = 0; j < HASH_DEPTH; j++)
			if (UCHAR_MAX == table[x + j]) {
				table[x + j] = (u_char)i;
				break;
			}
		assert(j < HASH_DEPTH);
	}
}
void man_hash_init ( void ) { int i , j , x ; memset ( table , UCHAR_MAX , sizeof ( table ) ) ; assert ( MAN_MAX < UCHAR_MAX ) ; for ( i = 0 ; i < ( int ) MAN_MAX ; i ++ ) { x = man_macronames [ i ] [ 0 ] ; assert ( isalpha ( ( u_char ) x ) ) ; HASH_ROW ( x ) ; for ( j = 0 ; j < HASH_DEPTH ; j ++ ) if ( UCHAR_MAX == table [ x + j ] ) { table [ x + j ] = ( u_char ) i ; break ; } assert ( j < 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.
XXX - this hash has global scope so if intended for use as a library with multiple callers it will need re - invocation protection .
/* LINTED */