]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 11:52:32 +0000 (13:52 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 02:35:42 +0000 (04:35 +0200)
* gnulib-local/lib/hash.h.diff: Update.
* gnulib-local/lib/hash.c.diff: Likewise.

gnulib-local/lib/hash.c.diff
gnulib-local/lib/hash.h.diff

index 1379ebfe869e71ad34767ed0b93a24093efb9082..c2c731402988cff27825acc403577fe00f8f0166 100644 (file)
@@ -1,15 +1,15 @@
 --- hash.c.orig        2020-07-04 10:21:00.491559357 +0200
 +++ hash.c     2020-07-04 10:22:00.536240305 +0200
-@@ -390,6 +390,8 @@
+@@ -345,6 +345,8 @@
  
  /* Allocation and clean-up.  */
  
 +#if 0
 +
- /* Return a hash index for a NUL-terminated STRING between 0 and N_BUCKETS-1.
-    This is a convenience routine for constructing other hashing functions.  */
+ #if USE_DIFF_HASH
  
-@@ -437,6 +439,8 @@
+ /* About hashings, Paul Eggert writes to me (FP), on 1994-01-01: "Please see
+@@ -389,6 +391,8 @@
  
  #endif /* not USE_DIFF_HASH */
  
index 864464f3d71ca278f3827b19508b9e2c5563c9d0..4bc96900ef6214a861c2e58099b7ccffb92b0a59 100644 (file)
@@ -1,12 +1,18 @@
 --- hash.h.orig        2020-07-04 10:20:48.099418874 +0200
 +++ hash.h     2020-07-04 10:21:37.279976514 +0200
-@@ -66,7 +66,9 @@
- size_t hash_do_for_each (const Hash_table *, Hash_processor, void *);
+@@ -128,11 +128,15 @@
+  * Allocation and clean-up.
+  */
  
- /* Allocation and clean-up.  */
 +#if 0
- size_t hash_string (const char *, size_t) _GL_ATTRIBUTE_PURE;
++
+ /* Return a hash index for a NUL-terminated STRING between 0 and N_BUCKETS-1.
+    This is a convenience routine for constructing other hashing functions.  */
+ extern size_t hash_string (const char *string, size_t n_buckets)
+        _GL_ATTRIBUTE_PURE;
 +#endif
- void hash_reset_tuning (Hash_tuning *);
- Hash_table *hash_initialize (size_t, const Hash_tuning *,
-                              Hash_hasher, Hash_comparator,
++
+ extern void hash_reset_tuning (Hash_tuning *tuning);
+ typedef size_t (*Hash_hasher) (const void *entry, size_t table_size);