X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ChangeLog;h=740548255c9a7e7174d3c3693b5b72c46233ec5d;hb=3457fcf5632d0411821c6ca61b09c945da9b1063;hp=f0016770e81ea96e122a90b36c402215d9789580;hpb=1d1b26278aece6b648d6d8ffffdae809cfd95973;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index f0016770e..740548255 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,110 @@ +2009-06-25 Sergey Poznyakoff + + Provide additional interfaces and documentation for version-etc + module. + + * lib/version-etc.c (version_etc_arn, version_etc_ar): New + interfaces. + * lib/version-etc.h (version_etc_arn, version_etc_ar): New + prototypes. + +2009-06-24 Bruno Haible + + * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of + HAVE_LIB${NAME} macro. + Reported by Sam Steingold . + +2009-06-23 Simon Josefsson + + * modules/hash-tests (test_hash_LDADD): Link to libintl when + needed. + +2009-06-21 Bruno Haible + + Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS + work. + * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME} + together with LIB${NAME}, LTLIB${NAME}. + Reported by Sam Steingold . + +2009-06-20 Jim Meyering + + tests: make sc_require_test_exit_idiom more generic + * top/maint.mk (Exit_witness_file): New overridable variable. + (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh. + Relax test for /^Exit \$fail$$/ to just /^Exit ./. + +2009-06-19 Jim Meyering + + hash: reverse order of src/dst parameters in an internal interface + * lib/hash.c (transfer_entries): Reverse order of parameters to + put DST before SRC. Adjust callers. + + tests: test-hash: avoid wholesale duplication + * tests/test-hash.c (main): Don't copy/paste a 60-line loop. + Instead, use a loop and add a single conditional. + + tests: test-hash: allow seed selection via a command line argument + * tests/test-hash.c (get_seed): New function. + (main): Use it. + +2009-06-19 Eric Blake + + hash: avoid memory leak on allocation failure + * lib/hash.c: (hash_rehash): Avoid memory leak on allocation + failure. Factor repeated algorithm... + (transfer_entries): ...into new helper routine. + (hash_delete): React to hash_rehash return value. + + hash: reduce memory pressure in hash_rehash no-op case + * lib/hash.c (next_prime): Avoid overflow. + (hash_initialize): Factor bucket size computation... + (compute_bucket_size): ...into new helper function. + (hash_rehash): Use new function and open coding to reduce memory + pressure, and avoid a memory leak in USE_OBSTACK code. + Reported by Jim Meyering. + +2009-06-18 Eric Blake + + hash: make rotation more obvious + * modules/hash (Depends-on): Add bitrotate and stdint. + * lib/bitrotate.h (rotl_sz, rotr_sz): New functions. + * lib/hash.c (headers): Drop limits.h. Add stdint.h. + (SIZE_MAX): Rely on headers for definition. + (hash_string) [USE_DIFF_HASH]: Use rotl_sz. + (raw_hasher): Use rotr_sz. + Suggested by Jim Meyering. + + hash: fix memory leak in last patch + * lib/hash.c (hash_rehash): Avoid memory leak. + + hash: avoid no-op rehashing + * lib/hash.c (hash_rehash): Recognize useless rehash attempts. + + 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. + + 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. + +2009-06-18 Bruno Haible + + * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is + going to be replaced anyway. + +2009-06-18 Bruno Haible + + * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only + in one place. + (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to + be replaced anyway. + 2009-06-18 Eric Blake hash: check for resize before insertion