]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Fri, 3 Feb 2023 12:36:32 +0000 (13:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Feb 2023 10:32:45 +0000 (11:32 +0100)
* gettext-runtime/intl/configure.ac: Test also REPLACE_TWALK.
* gettext-tools/src/po-xerror.c: Don't include "getprogname.h".
* gnulib-local/lib/xerror.c: Likewise.
* gnulib-local/lib/error-progname.c: Include <stdlib.h> instead of
getprogname.h.
* gnulib-local/lib/error.in.h.diff: Renamed from gnulib-local/lib/error.h.diff.
* gnulib-local/Makefile.am (EXTRA_DIST): Update.
* gnulib-local/modules/gettext-tools-misc (Makefile.am): Update comment.

.gitignore
gettext-runtime/intl/configure.ac
gettext-tools/src/po-xerror.c
gnulib-local/Makefile.am
gnulib-local/lib/error-progname.c
gnulib-local/lib/error.in.h.diff [moved from gnulib-local/lib/error.h.diff with 83% similarity]
gnulib-local/lib/xerror.c
gnulib-local/modules/gettext-tools-misc
libtextstyle/.gitignore

index e3a18dca8b2c0e50bcd4f2fe691913fd620ba7ea..3be8967a975e8638669d121d7b343c99605723d1 100644 (file)
@@ -66,6 +66,7 @@
 /gettext-tools/libgettextpo/arg-nonnull.h
 /gettext-tools/libgettextpo/asnprintf.c
 /gettext-tools/libgettextpo/asprintf.c
+/gettext-tools/libgettextpo/assert.in.h
 /gettext-tools/libgettextpo/attribute.h
 /gettext-tools/libgettextpo/basename-lgpl.c
 /gettext-tools/libgettextpo/basename-lgpl.h
@@ -93,7 +94,7 @@
 /gettext-tools/libgettextpo/error-progname.c
 /gettext-tools/libgettextpo/error-progname.h
 /gettext-tools/libgettextpo/error.c
-/gettext-tools/libgettextpo/error.h
+/gettext-tools/libgettextpo/error.in.h
 /gettext-tools/libgettextpo/exitfail.c
 /gettext-tools/libgettextpo/exitfail.h
 /gettext-tools/libgettextpo/fcntl.c
 /gettext-tools/libgettextpo/iconv_open.c
 /gettext-tools/libgettextpo/iconveh.h
 /gettext-tools/libgettextpo/idx.h
+/gettext-tools/libgettextpo/intprops-internal.h
 /gettext-tools/libgettextpo/intprops.h
 /gettext-tools/libgettextpo/inttypes.in.h
 /gettext-tools/libgettextpo/itold.c
 /gettext-tools/libgettextpo/stdalign.in.h
 /gettext-tools/libgettextpo/stdarg.in.h
 /gettext-tools/libgettextpo/stdbool.in.h
+/gettext-tools/libgettextpo/stdckdint.in.h
 /gettext-tools/libgettextpo/stddef.in.h
 /gettext-tools/libgettextpo/stdint.in.h
 /gettext-tools/libgettextpo/stdio-read.c
 /gettext-tools/libgrep/c++defs.h
 /gettext-tools/libgrep/cdefs.h
 /gettext-tools/libgrep/dynarray.h
+/gettext-tools/libgrep/intprops-internal.h
 /gettext-tools/libgrep/intprops.h
 /gettext-tools/libgrep/inttypes.in.h
 /gettext-tools/libgrep/langinfo.in.h
@@ -826,7 +830,9 @@ core
 /gettext-tools/doc/gettext.vrs
 /gettext-tools/libgettextpo/config.h
 /gettext-tools/libgettextpo/alloca.h
+/gettext-tools/libgettextpo/assert.h
 /gettext-tools/libgettextpo/errno.h
+/gettext-tools/libgettextpo/error.h
 /gettext-tools/libgettextpo/fcntl.h
 /gettext-tools/libgettextpo/float.h
 /gettext-tools/libgettextpo/iconv.h
@@ -836,6 +842,7 @@ core
 /gettext-tools/libgettextpo/signal.h
 /gettext-tools/libgettextpo/stdarg.h
 /gettext-tools/libgettextpo/stdbool.h
+/gettext-tools/libgettextpo/stdckdint.h
 /gettext-tools/libgettextpo/stddef.h
 /gettext-tools/libgettextpo/stdint.h
 /gettext-tools/libgettextpo/stdio.h
index 413e43d87b50df5ae1813758986b30a973031350..5049e96728b477d5578858e2d2543558886fa101 100644 (file)
@@ -305,7 +305,7 @@ if test $REPLACE_MEMCHR = 1; then
   AC_DEFINE([rpl_memchr],       [_libintl_memchr],    [Hidden symbol.])
 fi
 dnl Symbols defined by gnulib module 'tsearch'.
-if test $HAVE_TSEARCH = 0 || test $HAVE_TWALK = 0 || test $REPLACE_TSEARCH = 1; then
+if test $HAVE_TSEARCH = 0 || test $HAVE_TWALK = 0 || test $REPLACE_TSEARCH = 1 || test $REPLACE_TWALK = 1; then
   AC_DEFINE([tsearch],          [_libintl_tsearch],   [Hidden symbol.])
   AC_DEFINE([rpl_tsearch],      [_libintl_tsearch],   [Hidden symbol.])
   AC_DEFINE([tfind],            [_libintl_tfind],     [Hidden symbol.])
index d916d2a370265961632257849e9eb3a071625d5b..d3ee367720a9f8a7054ea8dd69a3cfeb8c850208 100644 (file)
@@ -1,5 +1,5 @@
 /* Error handling during reading and writing of PO files.
-   Copyright (C) 2005-2007, 2013, 2019 Free Software Foundation, Inc.
+   Copyright (C) 2005-2007, 2013, 2019, 2023 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2005.
 
    This program is free software: you can redistribute it and/or modify
@@ -35,7 +35,6 @@
 #include "xvasprintf.h"
 #include "po-error.h"
 #if IN_LIBGETTEXTPO
-# include "getprogname.h"
 # define program_name getprogname ()
 #else
 # include "progname.h"
index 300eca0cbd3e9f1a7fb71eef2b35af28bd193390..3ed2f77bf2c795c4e2b200350f88a3ccba586a97 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gnulib-local directory of GNU gettext
-## Copyright (C) 2006-2008, 2010-2012, 2014-2021 Free Software Foundation, Inc.
+## Copyright (C) 2006-2008, 2010-2012, 2014-2023 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
@@ -26,7 +26,7 @@ lib/backupfile.c \
 lib/backupfile.h \
 lib/closeout.c \
 lib/closeout.h \
-lib/error.h.diff \
+lib/error.in.h.diff \
 lib/error-progname.c \
 lib/error-progname.h \
 lib/exitfail.h.diff \
index cc2fefef6242c0d5975a7428ec3c26a7e7891d27..8294110b063f066f5aa6f986dde2711ccde93d25 100644 (file)
@@ -1,5 +1,5 @@
 /* Use of program name in error-reporting functions.
-   Copyright (C) 2001-2003, 2006, 2019 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2006, 2019, 2023 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software: you can redistribute it and/or modify
@@ -22,9 +22,9 @@
 #include "error-progname.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #if IN_LIBGETTEXTPO
-# include "getprogname.h"
 # define program_name getprogname ()
 #else
 # include "progname.h"
similarity index 83%
rename from gnulib-local/lib/error.h.diff
rename to gnulib-local/lib/error.in.h.diff
index 5b82f224ef714681d39bbcf4b80a27b0f760714b..4b78d883616a5891412168eaeece328c40be5018 100644 (file)
@@ -1,9 +1,9 @@
-*** gnulib/lib/error.h 2012-12-24 20:10:43.000000000 +0900
---- srclib/error.h     2012-12-24 20:08:16.000000000 +0900
+*** error.in.h.bak     2023-02-04 18:32:38.885731972 +0100
+--- error.in.h 2023-02-04 18:34:04.056640179 +0100
 ***************
-*** 31,36 ****
---- 31,45 ----
-  # define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
+*** 30,35 ****
+--- 30,44 ----
+  # define _GL_ATTRIBUTE_SPEC_PRINTF_ERROR _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM
   #endif
   
 + #if GNULIB_REPLACE_ERROR
@@ -19,7 +19,7 @@
   extern "C" {
   #endif
 ***************
-*** 49,62 ****
+*** 90,103 ****
   /* If NULL, error will flush stdout, then print on stderr the program
      name, a colon and a space.  Otherwise, error will call this
      function without parameters instead.  */
@@ -32,9 +32,9 @@
      variable controls whether this mode is selected or not.  */
 ! extern int error_one_per_line;
   
-  #ifdef       __cplusplus
+  #ifdef __cplusplus
   }
---- 58,71 ----
+--- 99,112 ----
   /* If NULL, error will flush stdout, then print on stderr the program
      name, a colon and a space.  Otherwise, error will call this
      function without parameters instead.  */
@@ -47,5 +47,5 @@
      variable controls whether this mode is selected or not.  */
 ! extern DLL_VARIABLE int error_one_per_line;
   
-  #ifdef       __cplusplus
+  #ifdef __cplusplus
   }
index 532cbc86299b80b2be2359758ff3301340c9f447..fd1cabaec00939a8dfb98d59105de5b67389da3a 100644 (file)
@@ -1,5 +1,5 @@
 /* Multiline error-reporting functions.
-   Copyright (C) 2001-2003, 2006, 2019 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2006, 2019, 2023 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software: you can redistribute it and/or modify
@@ -29,7 +29,6 @@
 #include "error-progname.h"
 #include "mbswidth.h"
 #if IN_LIBGETTEXTPO
-# include "getprogname.h"
 # define program_name getprogname ()
 #else
 # include "progname.h"
index 0aff53f67be1594272f13f999979799fc547219b..6e9b3412c50d3313890e8928bbec9dd9f84be4d4 100644 (file)
@@ -18,9 +18,9 @@ lib_LTLIBRARIES = libgettextlib.la
 # was given.
 # Need @LTLIBINTL@ because many source files use gettext().
 # Need @LTLIBICONV@ because linebreak.c and striconv.c use iconv().
-# Need @LIB_ACL@ because copy-file.c uses acl.h.
+# Need @LIB_ACL@ @QCOPY_ACL_LIB@ because copy-file.c uses acl.h and qcopy_acl.
 # As of 2010-10-04, these are all added by gnulib-tool automatically.
-#lib_LDFLAGS += $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@
+#lib_LDFLAGS += $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @QCOPY_ACL_LIB@
 
 lib_LDFLAGS += -release @VERSION@
 
index 31748d0576c312eb1bf08d98f02bb46baa3a2275..d4d14536798ae47ddd9c8cea5766dc766d347524 100644 (file)
@@ -22,6 +22,7 @@
 /lib/arg-nonnull.h
 /lib/asnprintf.c
 /lib/asprintf.c
+/lib/assert.in.h
 /lib/attribute.h
 /lib/basename-lgpl.c
 /lib/basename-lgpl.h
@@ -45,7 +46,7 @@
 /lib/dup2.c
 /lib/errno.in.h
 /lib/error.c
-/lib/error.h
+/lib/error.in.h
 /lib/exitfail.c
 /lib/exitfail.h
 /lib/fatal-signal.c
 /lib/iconv-ostream.oo.c
 /lib/iconv-ostream.oo.h
 /lib/idx.h
+/lib/intprops-internal.h
 /lib/intprops.h
 /lib/inttypes.in.h
 /lib/isatty.c
 /lib/stdalign.in.h
 /lib/stdarg.in.h
 /lib/stdbool.in.h
+/lib/stdckdint.in.h
 /lib/stddef.in.h
 /lib/stdint.in.h
 /lib/stdio-read.c
@@ -440,10 +443,14 @@ core
 /doc/vti.tmp*
 /lib/alloca.h
 /lib/alloca.h-t
+/lib/assert.h
+/lib/assert.h-t
 /lib/config.h
 /lib/config.h-t
 /lib/errno.h
 /lib/errno.h-t
+/lib/error.h
+/lib/error.h-t
 /lib/fcntl.h
 /lib/fcntl.h-t
 /lib/float.h
@@ -527,6 +534,8 @@ core
 /lib/stdarg.h-t
 /lib/stdbool.h
 /lib/stdbool.h-t
+/lib/stdckdint.h
+/lib/stdckdint.h-t
 /lib/stddef.h
 /lib/stddef.h-t
 /lib/stdint.h