Eric Blake wrote:
...
> +     hash: minor optimization
> +     * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
> +     when possible.
> +     (hash_initialize): Document this promise.
> +     (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
> +     * tests/test-hash.c (hash_compare_strings): Test this.

Other than mixing syntax and semantics changes in the same
change set, this looks fine.

> +     hash: provide default callback functions
> +     * lib/hash.c (raw_hasher, raw_comparator): New functions.
> +     (hash_initialize): Use them as defaults.
> +     * tests/test-hash.c (main): Test this.

This looks fine, too.
Thanks.


Reply via email to