"Re: Identifier significance CHALLENGE - (nf)"
Seaman
ags at pucc-k
Tue Dec 13 05:23:13 AEST 1983
One way to handle the hashing problem is to resolve collisions by permuting
the last character, if necessary, after truncating. For example, suppose
you want a maximum identifier length of 6 characters and the original program
contains (in this order)
thisisalongidentifier
thisisanotherlongidentifier
thisisyetanotherlongidentifier
These would be shortened as follows:
thisisalongidentifier -> thisis
thisisanotherlongidentifier -> thisit
thisisyetanotherlongidentifier -> thisiu
Dave Seaman
..!pur-ee!pucc-k!ags
More information about the Comp.lang.c
mailing list