bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnulib] removing dependency of error module on gettext module


From: Paul Eggert
Subject: [bug-gnulib] removing dependency of error module on gettext module
Date: Tue, 28 Dec 2004 22:55:22 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

At RMS's request to make the error module easier to use, I removed its
dependency on the gettext module as follows.  If you use the gettext
module anyway, this change has no effect.

The copyright-date change in error.c is to keep it in sync with glibc.
(Someday I intend to get all these changes merged back into glibc.)

2004-12-28  Paul Eggert  <address@hidden>

        * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
        not needed.  This removes a dependency on the gettext module.
        [defined _LIBC]: Do not include <libintl.h>; not needed.
        * modules/error (Depends-on): Remove gettext.

Index: lib/error.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/error.c,v
retrieving revision 1.41
diff -p -u -r1.41 error.c
--- lib/error.c 4 Oct 2004 20:30:46 -0000       1.41
+++ lib/error.c 29 Dec 2004 05:46:37 -0000
@@ -1,5 +1,5 @@
 /* Error handler for noninteractive utilities
-   Copyright (C) 1990-1998, 2000-2002, 2003, 2004 Free Software Foundation, 
Inc.
+   Copyright (C) 1990-1998, 2000-2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
@@ -29,9 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#ifdef _LIBC
-# include <libintl.h>
-#else
+#if !_LIBC && ENABLE_NLS
 # include "gettext.h"
 #endif
 
Index: modules/error
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/error,v
retrieving revision 1.6
diff -p -u -r1.6 error
--- modules/error       4 Oct 2004 20:17:39 -0000       1.6
+++ modules/error       29 Dec 2004 05:46:37 -0000
@@ -8,7 +8,6 @@ m4/error.m4
 m4/strerror_r.m4
 
 Depends-on:
-gettext
 
 configure.ac:
 gl_ERROR
@@ -23,4 +22,3 @@ LGPL
 
 Maintainer:
 all, glibc
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]