]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use gettext.h.
authorBruno Haible <bruno@clisp.org>
Tue, 5 Nov 2002 16:00:40 +0000 (16:00 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:50 +0000 (12:08 +0200)
lib/ChangeLog
lib/argmatch.c
lib/error.c
lib/getopt.c
lib/obstack.c

index 505da9236821a556598dca1247da47d17bfc6ac7..5b3b72929dff250bb07d813f812c319b5a2be6e8 100644 (file)
@@ -1,3 +1,10 @@
+2002-11-05  Bruno Haible  <bruno@clisp.org>
+
+       * argmatch.c: Include gettext.h instead of <libintl.h>.
+       * error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
+       * getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
+       * obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
+
 2002-11-04  Bruno Haible  <bruno@clisp.org>
 
        * getopt.c: Don't test HAVE_LIBINTL_H.
index f6ff44f0967d455bd85200cb5942a63ffe2bf6b8..79607ec4c82301d068963d88cb706766a951274c 100644 (file)
@@ -1,5 +1,5 @@
 /* argmatch.c -- find a match for a string in an array
-   Copyright (C) 1990, 1998, 1999, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1998, 1999, 2001, 2002 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
 
 #include <locale.h>
 
-#if ENABLE_NLS
-# include <libintl.h>
-# define _(Text) gettext (Text)
-#else
-# define _(Text) Text
-#endif
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
 
 #include "error.h"
 #include "exit.h"
index 64504afa560f3e04877ff0e181d956878b26ecf4..1e899ed063d0b696a674577358c0fde53f7e828a 100644 (file)
@@ -51,16 +51,12 @@ void exit ();
 
 #include "error.h"
 
-#ifndef _
-# if ENABLE_NLS || defined _LIBC
-#  include <libintl.h>
-#  ifndef _
-#   define _(Str) gettext (Str)
-#  endif
-# else
-#  define _(Str) (Str)
-# endif
+#ifdef _LIBC
+# include <libintl.h>
+#else
+# include "gettext.h"
 #endif
+#define _(msgid) gettext (msgid)
 
 /* If NULL, error will flush stdout, then print on stderr the program
    name, a colon and a space.  Otherwise, error will call this
index 98dba583af1e1c92bdf7be5fe351d0084ae64887..9917d9a640a34e7a2e67451fa4e9d69ea7bdccb8 100644 (file)
 # endif
 #endif
 
-#ifndef _
+#ifdef _LIBC
+# include <libintl.h>
+#else
 /* This is for other GNU distributions with internationalized messages.  */
-# if ENABLE_NLS || defined _LIBC
-#  include <libintl.h>
-#  ifndef _
-#   define _(msgid)    gettext (msgid)
-#  endif
-# else
-#  define _(msgid)     (msgid)
-# endif
-# if defined _LIBC && defined USE_IN_LIBIO
-#  include <wchar.h>
-# endif
+# include "gettext.h"
+#endif
+#define _(msgid) gettext (msgid)
+
+#if defined _LIBC && defined USE_IN_LIBIO
+# include <wchar.h>
 #endif
 
 #ifndef attribute_hidden
index 243d8f3c5e6284d15aac8e0c2bd535ec64cfbf5c..bf00cefd27c004b63cba1971129906d9f4cd90d2 100644 (file)
@@ -1,5 +1,5 @@
 /* obstack.c - subroutines used implicitly by object stack macros
-   Copyright (C) 1988,89,90,91,92,93,94,96,97 Free Software Foundation, Inc.
+   Copyright (C) 1988-1994, 1996-1997, 2002 Free Software Foundation, Inc.
 
 
    NOTE: The canonical source of this file is maintained with the GNU C Library.
@@ -457,16 +457,12 @@ _obstack_memory_used (h)
 }
 \f
 /* Define the error handler.  */
-#ifndef _
-# if ENABLE_NLS || defined _LIBC
-#  include <libintl.h>
-#  ifndef _
-#   define _(Str) gettext (Str)
-#  endif
-# else
-#  define _(Str) (Str)
-# endif
+#ifdef _LIBC
+# include <libintl.h>
+#else
+# include "gettext.h"
 #endif
+#define _(msgid) gettext (msgid)
 
 static void
 print_and_abort ()