]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a module name and include file name collision with gnulib.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Jul 2020 20:21:58 +0000 (22:21 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Jul 2020 20:23:08 +0000 (22:23 +0200)
* gnulib-local/lib/mem-hash-map.h: Renamed from gnulib-local/lib/hash.h.
* gnulib-local/lib/mem-hash-map.c: Renamed from gnulib-local/lib/hash.c.
Include mem-hash-map.h instead of hash.h.
* gnulib-local/modules/mem-hash-map: Renamed from gnulib-local/modules/hash.
Update.
* gnulib-local/Makefile.am (EXTRA_DIST): Update.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO):
Update.
* libtextstyle/gnulib-local/modules/term-styled-ostream (Depends-on): Likewise.
* gettext-tools/src/its.c: Include mem-hash-map.h instead of hash.h.
* gettext-tools/src/locating-rule.c: Likewise.
* gettext-tools/src/message.c: Likewise.
* gettext-tools/src/message.h: Likewise.
* gettext-tools/src/read-desktop.h: Likewise.
* gettext-tools/src/write-mo.c: Likewise.
* gettext-tools/src/write-qt.c: Likewise.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-csharp.c: Likewise.
* gettext-tools/src/x-desktop.c: Likewise.
* gettext-tools/src/x-elisp.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-librep.c: Likewise.
* gettext-tools/src/x-lisp.c: Likewise.
* gettext-tools/src/x-scheme.c: Likewise.
* gettext-tools/src/x-sh.c: Likewise.
* gettext-tools/src/x-tcl.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/xg-arglist-callshape.h: Likewise.
* gettext-tools/src/xg-arglist-context.h: Likewise.
* libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c: Likewise.

30 files changed:
.gitignore
autogen.sh
gettext-tools/src/its.c
gettext-tools/src/locating-rule.c
gettext-tools/src/message.c
gettext-tools/src/message.h
gettext-tools/src/read-desktop.h
gettext-tools/src/write-mo.c
gettext-tools/src/write-qt.c
gettext-tools/src/x-c.c
gettext-tools/src/x-csharp.c
gettext-tools/src/x-desktop.c
gettext-tools/src/x-elisp.c
gettext-tools/src/x-java.c
gettext-tools/src/x-librep.c
gettext-tools/src/x-lisp.c
gettext-tools/src/x-scheme.c
gettext-tools/src/x-sh.c
gettext-tools/src/x-tcl.c
gettext-tools/src/x-vala.c
gettext-tools/src/xg-arglist-callshape.h
gettext-tools/src/xg-arglist-context.h
gnulib-local/Makefile.am
gnulib-local/lib/mem-hash-map.c [moved from gnulib-local/lib/hash.c with 98% similarity]
gnulib-local/lib/mem-hash-map.h [moved from gnulib-local/lib/hash.h with 100% similarity]
gnulib-local/modules/hash [deleted file]
gnulib-local/modules/mem-hash-map [new file with mode: 0644]
libtextstyle/.gitignore
libtextstyle/gnulib-local/lib/term-styled-ostream.oo.c
libtextstyle/gnulib-local/modules/term-styled-ostream

index 102c17d22d88a6a679daf3faec2ab2ce8a9add7e..b9482405191eb65c6f25b5177c33f39dd09b3b14 100644 (file)
 /gettext-tools/libgettextpo/gl_xlist.h
 /gettext-tools/libgettextpo/hard-locale.c
 /gettext-tools/libgettextpo/hard-locale.h
-/gettext-tools/libgettextpo/hash.c
-/gettext-tools/libgettextpo/hash.h
 /gettext-tools/libgettextpo/iconv.c
 /gettext-tools/libgettextpo/iconv.in.h
 /gettext-tools/libgettextpo/iconv_close.c
 /gettext-tools/libgettextpo/mbswidth.h
 /gettext-tools/libgettextpo/mbtowc-lock.c
 /gettext-tools/libgettextpo/mbtowc-lock.h
+/gettext-tools/libgettextpo/mem-hash-map.c
+/gettext-tools/libgettextpo/mem-hash-map.h
 /gettext-tools/libgettextpo/memchr.c
 /gettext-tools/libgettextpo/memchr.valgrind
 /gettext-tools/libgettextpo/minmax.h
index 4c820f3a7a493e8a6c4b76438bee80c987e89d72..86bcd415544f273ca84414e800c3fbe49552c13e 100755 (executable)
@@ -154,7 +154,6 @@ if ! $skip_gnulib; then
     getopt-gnu
     gettext
     gettext-h
-    hash
     iconv
     javacomp
     javaexec
@@ -165,6 +164,7 @@ if ! $skip_gnulib; then
     localename
     localtime
     lock
+    mem-hash-map
     memchr
     memmove
     memset
@@ -305,11 +305,11 @@ if ! $skip_gnulib; then
     gcd
     getline
     gettext-h
-    hash
     iconv
     libtextstyle-dummy
     libunistring-optional
     markup
+    mem-hash-map
     minmax
     open
     relocatable-lib
index 8adf045448ba8e767b1a9e33db8c2cba48b8ea22..b8998a3a09f97913ba8d427e42e5392ad09c2f2d 100644 (file)
@@ -1,5 +1,5 @@
 /* Internationalization Tag Set (ITS) handling
-   Copyright (C) 2015, 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2015, 2018-2020 Free Software Foundation, Inc.
 
    This file was written by Daiki Ueno <ueno@gnu.org>, 2015.
 
@@ -27,7 +27,7 @@
 #include <errno.h>
 #include "error.h"
 #include "gettext.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include <stdint.h>
 #include <libxml/tree.h>
 #include <libxml/parser.h>
index d80fe23d8843f5da1918dfc867ec35bd8df9217f..1a54d4d28e147e3692fc7d783663adf108a256b8 100644 (file)
@@ -43,7 +43,7 @@
 #include "filename.h"
 #include <fnmatch.h>
 #include "gettext.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include <libxml/parser.h>
 #include <libxml/uri.h>
 #include "xalloc.h"
index 5f08ee2b6c0eee1fd080a224693c32cea2ad1f49..d4c1a90ce47d1fac084ad6bf7f2d80774dba76cf 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 
 #include "fstrcmp.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "xalloc.h"
 #include "xmalloca.h"
 
index 24760990149ced4bd0992d60f4354df9c7b06a88..f6936dfc7afcb9a2e516e8c24ea8f69f55825726 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "str-list.h"
 #include "pos.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 
 #include <stdbool.h>
 
index 873234694fb7844c11b2a26340c451220555eba7..06f7ad100ff492b5fc274a6c5df8a2d099f46510 100644 (file)
@@ -1,6 +1,5 @@
 /* Reading Desktop Entry files.
-   Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2016 Free
-   Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2016, 2020 Free Software Foundation, Inc.
    This file was written by Daiki Ueno <ueno@gnu.org>.
 
    This program is free software: you can redistribute it and/or modify
@@ -21,7 +20,7 @@
 
 #include <sys/types.h>
 #include <stdio.h>
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "po-lex.h"
 #include "str-list.h"
 
index 36984ac1c8518660955c37c801fe413e745fa4bf..fe93b708b71fea37267bbf6c692ae116bde0a436 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "byteswap.h"
 #include "error.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "message.h"
 #include "format.h"
 #include "xsize.h"
index 669147e1e2bf69a518344c6c0734cf65fd565b6f..e7e054c6822628b4b31f7b6c46c059fd178a2a63 100644 (file)
@@ -39,7 +39,7 @@
 #include "unistr.h"
 #include "xalloc.h"
 #include "obstack.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "binary-io.h"
 #include "fwriteerror.h"
 #include "gettext.h"
index f4e6522ab6e788592e73c162799db163ad936f25..08edb12b1e9b69710b7c9f6c81eb3afa01bde483 100644 (file)
@@ -44,7 +44,7 @@
 #include "error-progname.h"
 #include "xalloc.h"
 #include "xvasprintf.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "po-charset.h"
 #include "gettext.h"
 
index 2fb48f98c5813bd46ae3be870170ed6b6bc67808..5cf72adbb7484f3b6930e1cc2672bad889794a2a 100644 (file)
@@ -44,7 +44,7 @@
 #include "xalloc.h"
 #include "xerror.h"
 #include "xvasprintf.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "po-charset.h"
 #include "unistr.h"
 #include "gettext.h"
index 6efcaa62d9d1d54f9b86f336d1a0b7dd99901976..8d6a4610a7564fcf504160b873c9840e055e7203 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Desktop Entry backend.
-   Copyright (C) 2014, 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2014, 2018-2020 Free Software Foundation, Inc.
 
    This file was written by Daiki Ueno <ueno@gnu.org>, 2014.
 
@@ -36,7 +36,7 @@
 #include "error-progname.h"
 #include "xalloc.h"
 #include "xvasprintf.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "gettext.h"
 #include "read-desktop.h"
 #include "po-charset.h"
index c85739fe35685e1da580a8b1bea1c646a6b4e47a..b29fce5d0c94310be931707dd6b2e8da57542da1 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Emacs Lisp backend.
-   Copyright (C) 2001-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2005-2009, 2018-2020 Free Software Foundation, Inc.
 
    This file was written by Bruno Haible <haible@clisp.cons.org>, 2001-2002.
 
@@ -39,7 +39,7 @@
 #include "xg-message.h"
 #include "error.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "c-ctype.h"
 #include "gettext.h"
 
index 577304f6a11b512f2c4bf9ee40c6167b28d72562..eff1e6f7f7ad399e29c400236da0a590dc07b532 100644 (file)
@@ -41,7 +41,7 @@
 #include "error.h"
 #include "error-progname.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "po-charset.h"
 #include "unistr.h"
 #include "unictype.h"
index d1ad681fc1dca1f5e3978272fb94bf1d86747260..fc346bf08ddb162e046d58116646a4e04795f0be 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext librep backend.
-   Copyright (C) 2001-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2005-2009, 2018-2020 Free Software Foundation, Inc.
 
    This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
@@ -40,7 +40,7 @@
 #include "xg-message.h"
 #include "error.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "gettext.h"
 
 #define _(s) gettext(s)
index a436f444c238ed7ca4deb173ffc6c2cbae248f65..921db484f58100feb217c7eca23c3363696cb19e 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Lisp backend.
-   Copyright (C) 2001-2003, 2005-2009, 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2005-2009, 2018-2020 Free Software Foundation, Inc.
 
    This file was written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
@@ -39,7 +39,7 @@
 #include "xg-message.h"
 #include "error.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "gettext.h"
 
 #define _(s) gettext(s)
index fdde5f4ab03984c968bcaefa9036d3e54a4f71d0..f29bfe5dbefcd83497876017add56b288f7d0d36 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Scheme backend.
-   Copyright (C) 2004-2009, 2011, 2014, 2018-2019 Free Software Foundation, Inc.
+   Copyright (C) 2004-2009, 2011, 2014, 2018-2020 Free Software Foundation, Inc.
 
    This file was written by Bruno Haible <bruno@clisp.org>, 2004-2005.
 
@@ -39,7 +39,7 @@
 #include "xg-message.h"
 #include "error.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "gettext.h"
 
 #define _(s) gettext(s)
index 2868e4031ea5bdafdee2351f19d3ddf9d70e4878..2b0dedc122f3f52e887f7124a2037aee7c09da6a 100644 (file)
@@ -40,7 +40,7 @@
 #include "error.h"
 #include "error-progname.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "../../gettext-runtime/src/escapes.h"
 #include "gettext.h"
 
index 6c347a7cbe7a2adde99219445eaa7a9239a906f1..6b2b36cf7163b6af1f49b0a92b2d24f8c957af2e 100644 (file)
@@ -42,7 +42,7 @@
 #include "xg-message.h"
 #include "error.h"
 #include "xalloc.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "c-ctype.h"
 #include "po-charset.h"
 #include "unistr.h"
index 1e8b26bfeae34f802645f330325d15b9ef30ff7c..d807f5a6ce86fca33b2632e954e248084a1098f5 100644 (file)
@@ -44,7 +44,7 @@
 #include "error-progname.h"
 #include "xalloc.h"
 #include "xvasprintf.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "po-charset.h"
 #include "gettext.h"
 
index 6659f45a484c7638a603d5a77699088675b76859..9aa805479f854cdd7a929cd044f9ed54e05078c9 100644 (file)
@@ -1,6 +1,6 @@
 /* Resolving ambiguity of argument lists: Information given through
    command-line options.
-   Copyright (C) 2001-2018 Free Software Foundation, Inc.
+   Copyright (C) 2001-2018, 2020 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 #include <stddef.h>
 
 #include "str-list.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 
 #ifdef __cplusplus
 extern "C" {
index 16508c3c65c6228867ace86608d44bb4b3d41b32..6387931e13ad0f3ac7ca319bd398dee703646f9b 100644 (file)
@@ -1,6 +1,6 @@
 /* Keeping track of the flags that apply to a string extracted
    in a certain context.
-   Copyright (C) 2001-2018 Free Software Foundation, Inc.
+   Copyright (C) 2001-2018, 2020 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 
 #include <stdbool.h>
 
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "message.h"
 
 #ifdef __cplusplus
index 58207da1707e91ec10ae70c327be31c0f53866cd..b04a50c60e3f752d84fe9452a40d244a322d2abf 100644 (file)
@@ -38,8 +38,6 @@ lib/getopt-core.h.diff \
 lib/gettext.h \
 lib/gl_array_list.h.diff \
 lib/gl_linkedhash_list.h.diff \
-lib/hash.c \
-lib/hash.h \
 lib/libxml/buf.c \
 lib/libxml/buf.h \
 lib/libxml/c14n.c \
@@ -142,6 +140,8 @@ lib/libxml/xpointer.c \
 lib/libxml/xpointer.in.h \
 lib/markup.c \
 lib/markup.h \
+lib/mem-hash-map.c \
+lib/mem-hash-map.h \
 lib/obstack.h.diff \
 lib/progname.h.diff \
 lib/regex_internal.h.diff \
@@ -163,11 +163,11 @@ modules/closeout \
 modules/error-progname \
 modules/gettext-runtime-misc \
 modules/gettext-tools-misc \
-modules/hash \
 modules/java \
 modules/libtextstyle-dummy \
 modules/libxml \
 modules/markup \
+modules/mem-hash-map \
 modules/xalloc \
 modules/xalloc-die \
 modules/xerror \
similarity index 98%
rename from gnulib-local/lib/hash.c
rename to gnulib-local/lib/mem-hash-map.c
index 0e36995868e2d715bd63d43d958705d9ef3ab347..43f7df055ceac660bd2ad7e9a1d065b15d27e61f 100644 (file)
@@ -1,5 +1,5 @@
-/* hash - implement simple hashing table with string based keys.
-   Copyright (C) 1994-1995, 2000-2006, 2018 Free Software Foundation, Inc.
+/* hash - implement simple hashing table where the keys are memory blocks.
+   Copyright (C) 1994-1995, 2000-2006, 2018, 2020 Free Software Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
 
    This program is free software: you can redistribute it and/or modify
@@ -18,7 +18,7 @@
 #include <config.h>
 
 /* Specification.  */
-#include "hash.h"
+#include "mem-hash-map.h"
 
 #include <stdlib.h>
 #include <string.h>
diff --git a/gnulib-local/modules/hash b/gnulib-local/modules/hash
deleted file mode 100644 (file)
index f8495da..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-Description:
-Simple hash table with string based keys.
-
-Files:
-lib/hash.h
-lib/hash.c
-
-Depends-on:
-obstack
-xalloc
-
-configure.ac:
-
-Makefile.am:
-lib_SOURCES += hash.h hash.c
-
-Include:
-"hash.h"
-
-License:
-GPL
-
-Maintainer:
-Bruno Haible
-
diff --git a/gnulib-local/modules/mem-hash-map b/gnulib-local/modules/mem-hash-map
new file mode 100644 (file)
index 0000000..68ce5a7
--- /dev/null
@@ -0,0 +1,24 @@
+Description:
+Simple hash table where the keys are memory blocks.
+
+Files:
+lib/mem-hash-map.h
+lib/mem-hash-map.c
+
+Depends-on:
+obstack
+xalloc
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += mem-hash-map.h mem-hash-map.c
+
+Include:
+"mem-hash-map.h"
+
+License:
+GPL
+
+Maintainer:
+Bruno Haible
index 1f722c4a4efbb13a74f3d9c167d3187e08713762..64f4a1fcd995e4b899ff9737f103e771eb3293fa 100644 (file)
@@ -86,8 +86,6 @@
 /lib/glib/
 /lib/glib.in.h
 /lib/glibconfig.in.h
-/lib/hash.c
-/lib/hash.h
 /lib/html-ostream.oo.c
 /lib/html-ostream.oo.h
 /lib/html-styled-ostream.oo.c
 /lib/malloca.h
 /lib/math.c
 /lib/math.in.h
+/lib/mem-hash-map.c
+/lib/mem-hash-map.h
 /lib/memchr.c
 /lib/memchr.valgrind
 /lib/memory-ostream.oo.c
index e9d4f0fd349e356e8e0d8e69edd8a9886c745443..2ff978f6678d55a88ed26f83138549c3985a3023 100644 (file)
@@ -1,5 +1,5 @@
 /* Output stream for CSS styled text, producing ANSI escape sequences.
-   Copyright (C) 2006-2007, 2019 Free Software Foundation, Inc.
+   Copyright (C) 2006-2007, 2019-2020 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software: you can redistribute it and/or modify
@@ -33,7 +33,7 @@
 #include <cr-string.h>
 
 #include "term-ostream.h"
-#include "hash.h"
+#include "mem-hash-map.h"
 #include "xalloc.h"
 
 
index c2412fc4a957e4507cbb82cf5e45dfdca0148b1d..1b211b7c91a36d1236c92fb32f9f4afcdbac4bd2 100644 (file)
@@ -10,7 +10,7 @@ styled-ostream
 term-ostream
 libcroco
 libxml
-hash
+mem-hash-map
 xalloc
 
 configure.ac: