]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid possible future conflict with gnulib module 'hash'.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Jul 2020 19:42:14 +0000 (21:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Jul 2020 19:42:14 +0000 (21:42 +0200)
* gnulib-local/lib/hash.c.diff: New file.
* gnulib-local/lib/hash.h.diff: New file.
* gnulib-local/Makefile.am (EXTRA_DIST): Add them.

gnulib-local/Makefile.am
gnulib-local/lib/hash.c.diff [new file with mode: 0644]
gnulib-local/lib/hash.h.diff [new file with mode: 0644]

index b04a50c60e3f752d84fe9452a40d244a322d2abf..a11bca21e4b1dd87a96a6d6a308c41454b7258dd 100644 (file)
@@ -38,6 +38,8 @@ lib/getopt-core.h.diff \
 lib/gettext.h \
 lib/gl_array_list.h.diff \
 lib/gl_linkedhash_list.h.diff \
+lib/hash.c.diff \
+lib/hash.h.diff \
 lib/libxml/buf.c \
 lib/libxml/buf.h \
 lib/libxml/c14n.c \
diff --git a/gnulib-local/lib/hash.c.diff b/gnulib-local/lib/hash.c.diff
new file mode 100644 (file)
index 0000000..1379ebf
--- /dev/null
@@ -0,0 +1,20 @@
+--- 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 @@
+ /* 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.  */
+@@ -437,6 +439,8 @@
+ #endif /* not USE_DIFF_HASH */
++#endif
++
+ /* Return true if CANDIDATE is a prime number.  CANDIDATE should be an odd
+    number at least equal to 11.  */
diff --git a/gnulib-local/lib/hash.h.diff b/gnulib-local/lib/hash.h.diff
new file mode 100644 (file)
index 0000000..864464f
--- /dev/null
@@ -0,0 +1,12 @@
+--- 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 *);
+ /* Allocation and clean-up.  */
++#if 0
+ size_t hash_string (const char *, size_t) _GL_ATTRIBUTE_PURE;
++#endif
+ void hash_reset_tuning (Hash_tuning *);
+ Hash_table *hash_initialize (size_t, const Hash_tuning *,
+                              Hash_hasher, Hash_comparator,