First step in tidying up the LHASH code. The callback prototypes (and
authorGeoff Thorpe <geoff@openssl.org>
Fri, 1 Dec 2000 20:31:52 +0000 (20:31 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Fri, 1 Dec 2000 20:31:52 +0000 (20:31 +0000)
casts) used in the lhash code are about as horrible and evil as they can
be. For starters, the callback prototypes contain empty parameter lists.
Yuck.

This first change defines clearer prototypes - including "typedef"'d
function pointer types to use as "hash" and "compare" callbacks, as well as
the callbacks passed to the lh_doall and lh_doall_arg iteration functions.
Now at least more explicit (and clear) casting is required in all of the
dependant code - and that should be included in this commit.

The next step will be to hunt down and obliterate some of the function
pointer casting being used when it's not necessary - a particularly evil
variant exists in the implementation of lh_doall.


No differences found