]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Simplify code. Drop support for Borland C++ on Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 5 May 2018 08:36:24 +0000 (10:36 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 5 May 2018 10:58:25 +0000 (12:58 +0200)
* gettext-runtime/intl/dcigettext.c: Simplify
'defined _WIN32 || defined __WIN32__' to just 'defined _WIN32'.
* gettext-runtime/intl/l10nflist.c: Likewise.
* gettext-runtime/intl/langprefs.c: Likewise.
* gettext-runtime/intl/libgnuintl.in.h: Likewise.
* gettext-runtime/intl/loadinfo.h: Likewise.
* gettext-runtime/intl/setlocale.c: Likewise.
* gettext-runtime/intl/printf-parse.c: Likewise.
* gettext-runtime/libasprintf/printf-parse.c: Likewise.
* gettext-tools/src/format-c-parse.h: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gnulib-local/lib/basename.c: Likewise.

gettext-runtime/intl/dcigettext.c
gettext-runtime/intl/l10nflist.c
gettext-runtime/intl/langprefs.c
gettext-runtime/intl/libgnuintl.in.h
gettext-runtime/intl/loadinfo.h
gettext-runtime/intl/printf-parse.c
gettext-runtime/intl/setlocale.c
gettext-runtime/libasprintf/printf-parse.c
gettext-tools/src/format-c-parse.h
gettext-tools/src/hostname.c
gnulib-local/lib/basename.c

index e81fdafd2082612a0d06e20143f8b2a6c30483a1..f4df416455409f7ca9f9da1bd19c0e77686879c1 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the internal dcigettext function.
-   Copyright (C) 1995-2017 Free Software Foundation, Inc.
+   Copyright (C) 1995-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
@@ -209,7 +209,7 @@ static void *mempcpy (void *dest, const void *src, size_t n);
                         it may be concatenated to a directory pathname.
    IS_PATH_WITH_DIR(P)  tests whether P contains a directory specification.
  */
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Win32, Cygwin, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 # define HAS_DEVICE(P) \
index 7e52b13a14485eff4a42458d25afb0cad5d7e86a..b60bbe917890b8c4b5037e74220f58e2af8a995d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2016, 2018 Free Software Foundation, Inc.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
 
    This program is free software: you can redistribute it and/or modify
@@ -65,7 +65,7 @@ static char *stpcpy (char *dest, const char *src);
    IS_ABSOLUTE_PATH(P)  tests whether P is an absolute path.  If it is not,
                         it may be concatenated to a directory pathname.
  */
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Win32, Cygwin, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 # define HAS_DEVICE(P) \
index c04b7a30e3021ee2015542a405febae7163b0c23..3761b56e649fe7eeb833cf201d72e5a8ef6396ba 100644 (file)
@@ -1,5 +1,5 @@
 /* Determine the user's language preferences.
-   Copyright (C) 2004-2007, 2015-2016 Free Software Foundation, Inc.
+   Copyright (C) 2004-2007, 2015-2016, 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
@@ -32,7 +32,7 @@
 extern void _nl_locale_name_canonicalize (char *name);
 #endif
 
-#if defined _WIN32 || defined __WIN32__
+#if defined _WIN32
 # define WIN32_NATIVE
 #endif
 
index 95dcc16cacc98ecbe8bb7e062b290e7e5e39df75..a27c23d71539a5d78a69a531289fc8d17d2e86d0 100644 (file)
@@ -1,5 +1,5 @@
 /* Message catalogs for internationalization.
-   Copyright (C) 1995-1997, 2000-2016 Free Software Foundation, Inc.
+   Copyright (C) 1995-1997, 2000-2016, 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
@@ -427,7 +427,7 @@ extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
 
 
 /* Support for the locale chosen by the user.  */
-#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
+#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
 
 #ifndef GNULIB_defined_setlocale /* don't override gnulib */
 #undef setlocale
index 2e15f93aa12bf618ae041689f22438320be9a1f6..d968a778b8308ab33e27437ef025a605dfacac0b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2016, 2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -45,7 +45,7 @@
 #endif
 
 /* Separator in PATH like lists of pathnames.  */
-#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
   /* Win32, OS/2, DOS */
 # define PATH_SEPARATOR ';'
 #else
index ebcb4840b4b12596eaff9c989e24c11710e510a1..49827a3b4e01dd3e395727a13a510ac834a36369 100644 (file)
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016 Free Software
+   Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016, 2018 Free Software
    Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -420,7 +420,7 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
                       cp++;
                     }
 #endif
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
                   /* On native Win32, PRIdMAX is defined as "I64d".
                      We cannot change it to "lld" because PRIdMAX must also
                      be understood by the system's printf routines.  */
index 07c23056e554fe4f5cfc0a109eec2f411f1bcbf9..d271e1b972ecb09604470c4bbef57b5b5f5b83f8 100644 (file)
@@ -1,5 +1,5 @@
 /* setlocale() function that respects the locale chosen by the user.
-   Copyright (C) 2009, 2015-2016 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2015-2016, 2018 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2009.
 
    This program is free software: you can redistribute it and/or modify
@@ -42,7 +42,7 @@
 
 #include "gettextP.h"
 
-#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
+#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
 
 # undef setlocale
 # undef newlocale
@@ -81,7 +81,7 @@ category_to_name (int category)
   return retval;
 }
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 /* The native Win32 setlocale() function expects locale names of the form
    "German" or "German_Germany" or "DEU", but not "de" or "de_DE".  We need
@@ -854,7 +854,7 @@ libintl_setlocale (int category, const char *locale)
 
           if (setlocale_unixlike (LC_ALL, base_name) == NULL)
             goto fail;
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
           /* On native Windows, setlocale(LC_ALL,...) may succeed but set the
              LC_CTYPE category to an invalid value ("C") when it does not
              support the specified encoding.  Report a failure instead.  */
@@ -910,7 +910,7 @@ libintl_setlocale (int category, const char *locale)
     }
   else
     {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
       if (category == LC_ALL && locale != NULL && strchr (locale, '.') != NULL)
         {
           char *saved_locale;
index ebcb4840b4b12596eaff9c989e24c11710e510a1..49827a3b4e01dd3e395727a13a510ac834a36369 100644 (file)
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016 Free Software
+   Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016, 2018 Free Software
    Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -420,7 +420,7 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
                       cp++;
                     }
 #endif
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
                   /* On native Win32, PRIdMAX is defined as "I64d".
                      We cannot change it to "lld" because PRIdMAX must also
                      be understood by the system's printf routines.  */
index e90e5fd2c3f596e690a31f4e3e0d393527d0366d..ab7bb940468d662421656d6bfd3e55e4b352f118 100644 (file)
@@ -1,5 +1,5 @@
 /* Parsing C format strings.
-   Copyright (C) 2001-2004, 2006-2007, 2009-2010, 2015-2016 Free Software
+   Copyright (C) 2001-2004, 2006-2007, 2009-2010, 2015-2016, 2018 Free Software
    Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
@@ -630,7 +630,7 @@ format_parse_entrails (const char *format, bool translated,
                   size = FAT_SIZE_SIZE_T;
                 else if (*format == 't')
                   size = FAT_SIZE_PTRDIFF_T;
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
                 else if (SYSDEP_SEGMENTS_PROCESSED
                          && *format == 'I'
                          && format[1] == '6'
index 399edf00c409ea0220c89d7d908f0d0606b4a925..8dedd07b165d78fa9547afabf6824d7487467f86 100644 (file)
@@ -1,5 +1,5 @@
 /* Display hostname in various forms.
-   Copyright (C) 2001-2003, 2006-2007, 2012, 2015-2016 Free Software
+   Copyright (C) 2001-2003, 2006-2007, 2012, 2015-2016, 2018 Free Software
    Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
@@ -28,7 +28,7 @@
 #include <string.h>
 #include <locale.h>
 
-#if defined _WIN32 || defined __WIN32__
+#if defined _WIN32
 # define WIN32_NATIVE
 #endif
 
index 3518ade046491c018c0b6797eb62010ce4900ba1..2c1270f8bacca5acfea94c33fe25497f076d7632 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the name-within-directory of a file name.
-   Copyright (C) 1996-2002, 2004, 2006, 2010, 2012, 2015-2016 Free Software
+   Copyright (C) 1996-2002, 2004, 2006, 2010, 2012, 2015-2016, 2018 Free Software
    Foundation, Inc.
 
    NOTE: The canonical source of this file is maintained with the GNU C Library.
@@ -28,7 +28,7 @@
 #include <stdio.h>
 #include <assert.h>
 
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Win32, Cygwin, OS/2, DOS */
 # define HAS_DEVICE(P) \
     ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \