"Andrew L. Moore" <[email protected]> writes:
> We already have one vote in favor of importing Gnulib using its
> provided bootstrap script.
I didn't vote. I will leave that decision up to the maintainer. :)
> One note about Bruno Haible's hash function: In the version that is
> now deprecated in Gnulib, hash_pjw, the final value is returned
> modulus the key length, whereas in the original version included in
> this patch, no modulus is taken (as was the case in the Compilers
> book).
You can still use it from Gnulib. Only the hash-pjw name is deprecated:
$ gnulib-tool --extract-notice hash-pjw
This module is deprecated. Use the module 'hashcode-string2' instead.
$ gnulib-tool --extract-file hash-pjw
m4/00gnulib.m4
m4/zzgnulib.m4
m4/gnulib-common.m4
$ gnulib-tool --extract-notice hashcode-string2
$ gnulib-tool --extract-file hashcode-string2
lib/hashcode-string2.h
lib/hashcode-string2.c
lib/hash-pjw.h
m4/00gnulib.m4
m4/zzgnulib.m4
m4/gnulib-common.m4
Collin