]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: omit some unused function tests
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Sep 2023 17:05:58 +0000 (10:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:28:27 +0000 (00:28 -0700)
* m4/jm-macros.m4: Do not check for ftruncate, iswspace,
mkfifo, mbrlen, sysctl.  Coreutils no longer uses the
corresponding HAVE_* macros, typically because Gnulib
handles them now.
* src/wc.c (iswspace): Remove; unused.

m4/jm-macros.m4
src/wc.c

index 84c1209af99fc628a465e7f567518131511d8053..350964f0e240626ee2604222a127cf934eac581b 100644 (file)
@@ -1,4 +1,4 @@
-#serial 114   -*- autoconf -*-
+#serial 115   -*- autoconf -*-
 
 dnl Misc type-related macros for coreutils.
 
@@ -67,16 +67,11 @@ AC_DEFUN([coreutils_MACROS],
     fallocate
     fchown
     fchmod
-    ftruncate
-    iswspace
-    mkfifo
-    mbrlen
     setgroups
     sethostname
     siginterrupt
     sync
     syncfs
-    sysctl
     sysinfo
     tcgetpgrp
   ])
index c0b37b557698930fd3cbf9635364348e9a9fc67e..341ff9c7dce90cddf799fd5acc874f22e80aa3c7 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
 #include "stat-size.h"
 #include "xbinary-io.h"
 
-#if !defined iswspace && !HAVE_ISWSPACE
-# define iswspace(wc) \
-    ((wc) == to_uchar (wc) && isspace (to_uchar (wc)))
-#endif
-
 /* The official name of this program (e.g., no 'g' prefix).  */
 #define PROGRAM_NAME "wc"