The hashtable routines from hlink.c modified to have more generic names,