[comp.sys.next] Revised HashFile for 2.0

lane@SUMEX-AIM.STANFORD.EDU (Christopher Lane) (03/28/91)

I've FTP'd a new copy of 'HashFile' to the submissions directory of the
cs.orst.edu archive.  This version does not change the HashFile class code.
It's been recompiled under 2.0 and the 'HashExample' program has been
rewritten such that you generate the 'phone number to word' database from
/usr/dict/web2 instead of downloading it with the program.

HashFile is a bridge between the hashed database library functions, db(3), and
the HashTable object.  It can be viewed as an alternate interface to the
database library functions or a HashTable that survives program execution.

I found that several of my 'db(3)' files (*.{D,L}) didn't carry over from 1.0
to 2.0 -- they would work but 'db' would generate messages like:

	*** HashTable: count differs after rehashing; probably
	indicates a broken invariant: there are x and y such as
	isEqual(x, y) is TRUE but hash(x) != hash (y)

However, recreating the *.{D,L} files from the original source data under 2.0
seems to clear up the problem.

- Christopher

-------