aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-12-22 21:49:31 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-12-22 21:49:31 +0200
commit0c31cf60d2777573de6b34f239a2c4c21bbb8bfc (patch)
treee12fd306850ce98226ae468eb888cca19a08affb
parent6a8e3366a8441364df62499cd827ecc98cbfce07 (diff)
downloadegawk-0c31cf60d2777573de6b34f239a2c4c21bbb8bfc.tar.gz
egawk-0c31cf60d2777573de6b34f239a2c4c21bbb8bfc.tar.bz2
egawk-0c31cf60d2777573de6b34f239a2c4c21bbb8bfc.zip
Update gettext.h.
-rw-r--r--ChangeLog5
-rw-r--r--NEWS2
-rw-r--r--gettext.h23
3 files changed, 18 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index a589fb33..ecb56e2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-22 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gettext.h: Update from gettext 0.20.1.
+ * NEWS: Updated.
+
2019-12-18 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
Fix memcpy issue found by -fsanitize=undefined
diff --git a/NEWS b/NEWS
index c8a2c5be..62958593 100644
--- a/NEWS
+++ b/NEWS
@@ -12,7 +12,7 @@ Changes from 5.0.1 to 5.1.0
2. A number of memory leak issues have been fixed.
-3. Infrastructure upgrades: Bison 3.5, Texinfo 6.7.
+3. Infrastructure upgrades: Bison 3.5, Texinfo 6.7, Gettext 0.20.1.
4. The indexing in the manual has been thoroughly revised, in particular
making use of the facilities in Texinfo 6.7. That version (or newer)
diff --git a/gettext.h b/gettext.h
index bfc61488..657fdbe0 100644
--- a/gettext.h
+++ b/gettext.h
@@ -1,25 +1,26 @@
/* Convenience header for conditional use of GNU <libintl.h>.
- Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2016 Free Software
+ Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2018 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation; either version 2.1 of the License, or
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Lesser General Public License for more details.
+ GNU General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#ifndef _LIBGETTEXT_H
#define _LIBGETTEXT_H 1
-/* NLS can be disabled through the configure --disable-nls option. */
-#if ENABLE_NLS
+/* NLS can be disabled through the configure --disable-nls option
+ or through "#define ENABLE NLS 0" before including this file. */
+#if defined ENABLE_NLS && ENABLE_NLS
/* ADR: Need this so gcc -g without -O works. */
#ifdef HAVE_LOCALE_H
@@ -71,9 +72,8 @@
for invalid uses of the value returned from these functions.
On pre-ANSI systems without 'const', the config.h file is supposed to
contain "#define const". */
-/* ADR: BOGUS. Remove const. 19 Feb 2002 */
# undef gettext
-# define gettext(Msgid) ((char *) (Msgid))
+# define gettext(Msgid) ((const char *) (Msgid))
# undef dgettext
# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
# undef dcgettext
@@ -193,7 +193,8 @@ npgettext_aux (const char *domain,
#include <string.h>
#if (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
- /* || __STDC_VERSION__ >= 199901L */ )
+ /* || (__STDC_VERSION__ == 199901L && !defined __HP_cc)
+ || (__STDC_VERSION__ >= 201112L && !defined __STDC_NO_VLA__) */ )
# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1
#else
# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0