bug-coreutils
[Top][All Lists]
Advanced

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

[PATCH] build: use gnulib's isblank module


From: Jim Meyering
Subject: [PATCH] build: use gnulib's isblank module
Date: Mon, 19 Oct 2009 09:04:34 +0200

FYI,

>From 6ac6c7e4b77898d6d82d5565b5d8b053ecacbc64 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 19 Oct 2009 07:55:42 +0200
Subject: [PATCH] build: use gnulib's isblank module

* bootstrap.conf (gnulib_modules): Add isblank.
* src/system.h (isblank): Don't define.
* m4/check-decl.m4: Don't check for isblank declaration.
* gnulib: Update submodule to latest.
---
 bootstrap.conf   |    1 +
 gnulib           |    2 +-
 m4/check-decl.m4 |    4 +---
 src/system.h     |    4 ----
 4 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/bootstrap.conf b/bootstrap.conf
index e9b198c..1857489 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -127,6 +127,7 @@ gnulib_modules="
   inttostr
   inttypes
   isapipe
+  isblank
   lchmod
   lchown
   lib-ignore
diff --git a/gnulib b/gnulib
index 791cc50..f7f4cd9 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 791cc509ac459a2555f8d633ad67455cf8d3fe4d
+Subproject commit f7f4cd99ff9ce8efee94aafdd5980cb4bb1d1395
diff --git a/m4/check-decl.m4 b/m4/check-decl.m4
index 530c59e..0bd7b54 100644
--- a/m4/check-decl.m4
+++ b/m4/check-decl.m4
@@ -1,4 +1,4 @@
-#serial 25
+#serial 26
 # Check declarations for this package.

 dnl Copyright (C) 1997-2001, 2003-2006, 2008-2009 Free Software
@@ -35,8 +35,6 @@ AC_DEFUN([gl_CHECK_DECLS],
     getpwuid,
     ttyname], , , $headers)

-  AC_CHECK_DECLS([isblank], [], [], [#include <ctype.h>])
-
   AC_CHECK_DECLS_ONCE([geteuid])
   AC_CHECK_DECLS_ONCE([getlogin])
   AC_CHECK_DECLS_ONCE([getuid])
diff --git a/src/system.h b/src/system.h
index 8de0f3c..b4d5e77 100644
--- a/src/system.h
+++ b/src/system.h
@@ -212,10 +212,6 @@ enum

 #include <ctype.h>

-#if ! (defined isblank || HAVE_DECL_ISBLANK)
-# define isblank(c) ((c) == ' ' || (c) == '\t')
-#endif
-
 /* ISDIGIT differs from isdigit, as follows:
    - Its arg may be any int or unsigned int; it need not be an unsigned char
      or EOF.
--
1.6.5.1.258.g5b20




reply via email to

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