grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.10-16-g0ba89c0


From: Jim Meyering
Subject: grep branch, master, updated. v2.10-16-g0ba89c0
Date: Mon, 12 Dec 2011 13:10:38 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  0ba89c07c583fb7bc24225f6dca66fd066169497 (commit)
       via  ed071726be5758b1422d7972450a1867655268b4 (commit)
       via  979592944f06bddb108458073239d2ff52d2c475 (commit)
      from  9d68b23adfe963387525a5a3e8eb84957ee17212 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=0ba89c07c583fb7bc24225f6dca66fd066169497


commit 0ba89c07c583fb7bc24225f6dca66fd066169497
Author: Jim Meyering <address@hidden>
Date:   Mon Dec 12 13:36:46 2011 +0100

    build: use gnulib's iswctype wcscoll
    
    * bootstrap.conf (gnulib_modules): Add iswctype and wcscoll.
    * configure.ac: Remove explicit checks for those functions.
    * src/mbsupport.h (MBS_SUPPORT): Define to 1 if not already defined.
    Remove the conditional, now that we're guaranteed by gnulib to have
    wcscoll and iswctype.
    Suggested by Alan Hourihane in http://savannah.gnu.org/bugs/?34930

diff --git a/bootstrap.conf b/bootstrap.conf
index c3b7158..64e4ea6 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -43,6 +43,7 @@ ignore-value
 intprops
 isblank
 isdir
+iswctype
 largefile
 lseek
 locale
@@ -79,6 +80,7 @@ useless-if-before-free
 version-etc-fsf
 wchar
 wcrtomb
+wcscoll
 wctob
 wctype-h
 xalloc
diff --git a/configure.ac b/configure.ac
index 6c0f29d..3eff422 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,7 +183,7 @@ AC_HEADER_DIRENT
 dnl Checks for functions.
 AC_FUNC_CLOSEDIR_VOID
 
-AC_CHECK_FUNCS_ONCE(isascii iswctype setlocale wcscoll)
+AC_CHECK_FUNCS_ONCE(isascii setlocale)
 
 dnl I18N feature
 AM_GNU_GETTEXT_VERSION([0.18])
diff --git a/src/mbsupport.h b/src/mbsupport.h
index 06729e1..4529134 100644
--- a/src/mbsupport.h
+++ b/src/mbsupport.h
@@ -17,21 +17,10 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
-
-/* This file is needed so that we test for i18n support in just one place.
-   This gives us a consistent definition for all uses of MBS_SUPPORT. This
-   follows the ``Don't Repeat Yourself'' principle from "The Pragmatic
-   Programmer".
-
-   The tests should be *all* the ones that are needed for an individual
-   application.  */
-
 #include <stdlib.h>
 
-#if defined HAVE_WCSCOLL && defined HAVE_ISWCTYPE
+#ifndef MBS_SUPPORT
 # define MBS_SUPPORT 1
-#else
-# define MBS_SUPPORT 0
 #endif
 
 #if ! MBS_SUPPORT

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=ed071726be5758b1422d7972450a1867655268b4


commit 0ba89c07c583fb7bc24225f6dca66fd066169497
Author: Jim Meyering <address@hidden>
Date:   Mon Dec 12 13:36:46 2011 +0100

    build: use gnulib's iswctype wcscoll
    
    * bootstrap.conf (gnulib_modules): Add iswctype and wcscoll.
    * configure.ac: Remove explicit checks for those functions.
    * src/mbsupport.h (MBS_SUPPORT): Define to 1 if not already defined.
    Remove the conditional, now that we're guaranteed by gnulib to have
    wcscoll and iswctype.
    Suggested by Alan Hourihane in http://savannah.gnu.org/bugs/?34930

diff --git a/bootstrap.conf b/bootstrap.conf
index c3b7158..64e4ea6 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -43,6 +43,7 @@ ignore-value
 intprops
 isblank
 isdir
+iswctype
 largefile
 lseek
 locale
@@ -79,6 +80,7 @@ useless-if-before-free
 version-etc-fsf
 wchar
 wcrtomb
+wcscoll
 wctob
 wctype-h
 xalloc
diff --git a/configure.ac b/configure.ac
index 6c0f29d..3eff422 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,7 +183,7 @@ AC_HEADER_DIRENT
 dnl Checks for functions.
 AC_FUNC_CLOSEDIR_VOID
 
-AC_CHECK_FUNCS_ONCE(isascii iswctype setlocale wcscoll)
+AC_CHECK_FUNCS_ONCE(isascii setlocale)
 
 dnl I18N feature
 AM_GNU_GETTEXT_VERSION([0.18])
diff --git a/src/mbsupport.h b/src/mbsupport.h
index 06729e1..4529134 100644
--- a/src/mbsupport.h
+++ b/src/mbsupport.h
@@ -17,21 +17,10 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
-
-/* This file is needed so that we test for i18n support in just one place.
-   This gives us a consistent definition for all uses of MBS_SUPPORT. This
-   follows the ``Don't Repeat Yourself'' principle from "The Pragmatic
-   Programmer".
-
-   The tests should be *all* the ones that are needed for an individual
-   application.  */
-
 #include <stdlib.h>
 
-#if defined HAVE_WCSCOLL && defined HAVE_ISWCTYPE
+#ifndef MBS_SUPPORT
 # define MBS_SUPPORT 1
-#else
-# define MBS_SUPPORT 0
 #endif
 
 #if ! MBS_SUPPORT

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=979592944f06bddb108458073239d2ff52d2c475


commit 0ba89c07c583fb7bc24225f6dca66fd066169497
Author: Jim Meyering <address@hidden>
Date:   Mon Dec 12 13:36:46 2011 +0100

    build: use gnulib's iswctype wcscoll
    
    * bootstrap.conf (gnulib_modules): Add iswctype and wcscoll.
    * configure.ac: Remove explicit checks for those functions.
    * src/mbsupport.h (MBS_SUPPORT): Define to 1 if not already defined.
    Remove the conditional, now that we're guaranteed by gnulib to have
    wcscoll and iswctype.
    Suggested by Alan Hourihane in http://savannah.gnu.org/bugs/?34930

diff --git a/bootstrap.conf b/bootstrap.conf
index c3b7158..64e4ea6 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -43,6 +43,7 @@ ignore-value
 intprops
 isblank
 isdir
+iswctype
 largefile
 lseek
 locale
@@ -79,6 +80,7 @@ useless-if-before-free
 version-etc-fsf
 wchar
 wcrtomb
+wcscoll
 wctob
 wctype-h
 xalloc
diff --git a/configure.ac b/configure.ac
index 6c0f29d..3eff422 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,7 +183,7 @@ AC_HEADER_DIRENT
 dnl Checks for functions.
 AC_FUNC_CLOSEDIR_VOID
 
-AC_CHECK_FUNCS_ONCE(isascii iswctype setlocale wcscoll)
+AC_CHECK_FUNCS_ONCE(isascii setlocale)
 
 dnl I18N feature
 AM_GNU_GETTEXT_VERSION([0.18])
diff --git a/src/mbsupport.h b/src/mbsupport.h
index 06729e1..4529134 100644
--- a/src/mbsupport.h
+++ b/src/mbsupport.h
@@ -17,21 +17,10 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
-
-/* This file is needed so that we test for i18n support in just one place.
-   This gives us a consistent definition for all uses of MBS_SUPPORT. This
-   follows the ``Don't Repeat Yourself'' principle from "The Pragmatic
-   Programmer".
-
-   The tests should be *all* the ones that are needed for an individual
-   application.  */
-
 #include <stdlib.h>
 
-#if defined HAVE_WCSCOLL && defined HAVE_ISWCTYPE
+#ifndef MBS_SUPPORT
 # define MBS_SUPPORT 1
-#else
-# define MBS_SUPPORT 0
 #endif
 
 #if ! MBS_SUPPORT

-----------------------------------------------------------------------

Summary of changes:
 NEWS                    |   12 ++++++++++++
 bootstrap.conf          |    2 ++
 configure.ac            |    2 +-
 src/main.c              |   18 +++++++++++++++---
 src/mbsupport.h         |   13 +------------
 tests/in-eq-out-infloop |    9 +++++++++
 6 files changed, 40 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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