]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <config.h> unconditionally, since we now assume config.h exists.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Aug 2006 06:55:57 +0000 (06:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Aug 2006 06:55:57 +0000 (06:55 +0000)
31 files changed:
.x-sc_no_if_have_config_h [deleted file]
.x-sc_prohibit_assert_without_use [deleted file]
.x-sc_two_space_separator_in_usage [deleted file]
ChangeLog
Makefile.maint
bootstrap.conf
lib/ChangeLog
lib/euidaccess-stat.c
lib/fchmodat.c
lib/fd-reopen.c
lib/fdopendir-glibc.c
lib/memxfrm.c
lib/printf-parse.c
lib/rand-isaac.c
lib/randint.c
lib/randperm.c
lib/randread.c
lib/root-dev-ino.c
lib/sha256.c
lib/sha512.c
lib/stdopen.c
lib/strintcmp.c
lib/strnumcmp.c
lib/t-chdir-long
lib/tsearch.c
lib/unicodeio.c
lib/vasnprintf.c
lib/xfts.c
lib/xmemxfrm.c
src/dircolors.c
src/shred.c

diff --git a/.x-sc_no_if_have_config_h b/.x-sc_no_if_have_config_h
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/.x-sc_prohibit_assert_without_use b/.x-sc_prohibit_assert_without_use
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/.x-sc_two_space_separator_in_usage b/.x-sc_two_space_separator_in_usage
deleted file mode 100644 (file)
index e69de29..0000000
index 588eedde02c736f79367b8db06a6eb2a7d3a9280..79f7133a65f09cc0568374181eef078359b9ab06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * .x-sc_no_if_have_config_h: Remove; no longer needed.
+       * .x-sc_prohibit_assert_without_use: Remove; it was empty.
+       * .x-sc_two_space_separator_in_usage: Likewise.
+       * Makefile.maint (sc_no_have_config_h): Renamed from
+       sc_no_if_have_config_h, since it now checks that HAVE_CONFIG_H
+       is absent everywhere.
+       * bootstrap.conf (gnulib_modules): Add config-h.
+       * src/shred.c: Include <config.h> unconditionally, since
+       we now assume config.h exists.
+       * src/dircolors.c: Likewise.
+
 2006-08-26  Jim Meyering  <jim@meyering.net>
 
        "ls --color" would highlight other-writable and sticky directories
index 4512d3659127a54d6a3b6d6a4e921405b2728dc2..49afba5ef67f15ede893d79090a458c4d0d35f64 100644 (file)
@@ -140,9 +140,9 @@ sc_file_system:
            'rewrite to use "file system"' 1>&2;                        \
            exit 1; } || :
 
-sc_no_if_have_config_h:
-       @grep -n '^# *if HAVE_CONFIG_H' $$($(CVS_LIST_EXCEPT)) &&       \
-         { echo '$(ME): found use of #if HAVE_CONFIG_H; use #ifdef'    \
+sc_no_have_config_h:
+       @grep -n 'HAVE''_CONFIG_H' $$($(CVS_LIST_EXCEPT)) &&            \
+         { echo '$(ME): found use of HAVE''_CONFIG_H; remove'          \
                1>&2; exit 1; } || :
 
 # Nearly all .c files must include <config.h>.
index edb88b8c6a3a1fe075f785d50d759bd6e896e060..e604213ae8b0f62c38197c05a902b02fefcf1ce1 100644 (file)
@@ -38,7 +38,8 @@ gnulib_modules="
        $avoided_gnulib_modules
        $obsolete_gnulib_modules
        acl alloca argmatch assert backupfile base64 c-strtod
-       c-strtold calloc canon-host canonicalize chown cloexec configmake
+       c-strtold calloc canon-host canonicalize chown cloexec
+       config-h configmake
        closeout cycle-check d-ino d-type diacrit dirfd dirname dup2
        error euidaccess exclude exitfail fcntl-safer fdl file-type
        fileblocks filemode filenamecat fnmatch-gnu fopen-safer
index 9247c4c5bce2efbfd0d17c625269e607ceb15564..0949be2695ea3cac2240607e9eb28b90248927cc 100644 (file)
@@ -1,5 +1,29 @@
 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * euidaccess-stat.c: Include <config.h> unconditionally, since
+       we now assume config.h exists.
+       * fchmodat.c: Likewise.
+       * fd-reopen.c: Likewise.
+       * fdopendir-glibc.c: Likewise.
+       * memxfrm.c: Likewise.
+       * printf-parse.c: Likewise.
+       * rand-isaac.c: Likewise.
+       * randint.c: Likewise.
+       * randperm.c: Likewise.
+       * randread.c: Likewise.
+       * root-dev-ino.c: Likewise.
+       * sha256.c: Likewise.
+       * sha512.c: Likewise.
+       * stdopen.c: Likewise.
+       * strintcmp.c: Likewise.
+       * strnumcmp.c: Likewise.
+       * t-chdir-long: Likewise.
+       * tsearch.c: Likewise.
+       * unicodeio.c: Likewise.
+       * vasnprintf.c: Likewise.
+       * xfts.c: Likewise.
+       * xmemxfrm.c: Likewise.
+
        * .cvsignore: Add configmake.h, stamp-h1.
 
 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
index 8d39fa1c3e1b00f4e9b092dd55dc248c8b48edda..7663c463ee99da318bc6765de16dd3176ed563f3 100644 (file)
@@ -2,7 +2,7 @@
    This function is probably useful only for choosing whether to issue
    a prompt in an implementation of POSIX-specified rm.
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 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
@@ -20,9 +20,7 @@
 
 /* Adapted for use in GNU remove.c by Jim Meyering.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "euidaccess-stat.h"
 
index 62327f83e76ed6570487f9f07c94289dee2be388..2598b7015f0f39c4b302b8a08081dc09eda2c50b 100644 (file)
@@ -17,9 +17,7 @@
 
 /* written by Jim Meyering */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "openat.h"
 #include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
index 12c55f082a36d933456cf21f1794c2a6bbf1ec55..99376e380dfed1063da263706206da0f6c3f3b06 100644 (file)
@@ -1,6 +1,6 @@
 /* Invoke open, but return either a desired file descriptor or -1.
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 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
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "fd-reopen.h"
 
index 6598dc227a58c5b86a03ce8b4e25df5ef14a8dd6..2bafac94e540352061933ae6d1a3dc0ccb92216c 100644 (file)
@@ -16,9 +16,7 @@
    with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include <stdio.h>
 #include <stdlib.h>
index 79db94b8f8aec859c50354ea76eb5552469c3443..09bb5f4ad03167d42ad28f83a95eb0afc1d25da4 100644 (file)
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert <eggert@cs.ucla.edu>.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "memxfrm.h"
 
index 0ecb86cd8c10721a065ee2382d1e172a62f7c039..f8e0ceda54df0c311d15126694478e3ecb780ed3 100644 (file)
@@ -1,5 +1,5 @@
 /* Formatted output to strings.
-   Copyright (C) 1999-2000, 2002-2004 Free Software Foundation, Inc.
+   Copyright (C) 1999-2000, 2002-2004, 2006 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
@@ -15,9 +15,7 @@
    with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 /* Specification.  */
 #if WIDE_CHAR_VERSION
index 8fc48f79c02481f6ec24cb16d1423758412af55c..cfdc643f609eeb643bdaa4abbdad0d949b078bf9 100644 (file)
@@ -31,9 +31,7 @@
  * and fast, and because the author did good work analyzing it.
  * --------------------------------------------------------------------
  */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "rand-isaac.h"
 
index e461bf716cd534e82b2e14ce8cd8c0d7d2943096..5ee738a506dbb1ca09da62425fcc427312fb42fb 100644 (file)
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "randint.h"
 
index 96f049446829c9f603840b335120869522c062c1..faf34dde1c1c5cf358ca0a75c24a013660d50e38 100644 (file)
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "randperm.h"
 
index ff3f86900107bbedff58c3cf5c2ec2208ebe83f7..28796fe49fcc0c33c64c5500a878e8481bdc671d 100644 (file)
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "randread.h"
 
index 9b03a121bcaa54dd1e42758e96e5b2102067af01..a78541212f65266ce88495cbb50579a9017810aa 100644 (file)
@@ -1,5 +1,5 @@
 /* root-dev-ino.c -- get the device and inode numbers for `/'.
-   Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2005, 2006 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
 
 /* Written by Jim Meyering. */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
-#include <stdlib.h>
 #include "root-dev-ino.h"
 
+#include <stdlib.h>
+
 /* Call lstat to get the device and inode numbers for `/'.
    Upon failure, return NULL.  Otherwise, set the members of
    *ROOT_D_I accordingly and return ROOT_D_I.  */
index cea855f28bedc0c74fb7d56e28007cbf34324fde..d23c509dc33846dbcc0f1e455e8e1734b8f9705a 100644 (file)
@@ -21,9 +21,7 @@
    Scott G. Miller's sha1.c
 */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "sha256.h"
 
index 79c03e216cec6e3c1ac78817a1bd34d4ac39e6a7..554e2dea21e86dd6e49cee39d7749e71ca770a8f 100644 (file)
@@ -21,9 +21,7 @@
    Scott G. Miller's sha1.c
 */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "sha512.h"
 
index 3ca2b61e6bd17c94a4a549ace58c4a5b52545b64..70e5d5328ecefba79502f577960d7c78c5960f45 100644 (file)
@@ -1,6 +1,6 @@
 /* stdopen.c - ensure that the three standard file descriptors are in use
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 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
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert and Jim Meyering.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "stdopen.h"
 
index 2052babe5a20292d76069f7360934b8e4a4591d1..f8f18012fd7974040e610d0894fee239ee5a87b5 100644 (file)
@@ -1,6 +1,6 @@
 /* Compare integer strings.
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 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
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "strnumcmp-in.h"
 
index 45e12f5514b3eca458297ca646c4213a1849fa45..3afbfb1d93a748a890ef4d6542ef6bafdfb8500c 100644 (file)
@@ -1,6 +1,6 @@
 /* Compare numeric strings.
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2006 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
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "strnumcmp-in.h"
 
index 37dd7181acef12f9d1f47acb3406dd6aa4b69831..2da09b31efdb98c1bcf2e400b75f0a8229642029 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Exercise chdir-long's sample main program.
 
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006 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
@@ -23,7 +23,7 @@
 # temporary directories are easier to remove.
 # FIXME: don't clobber a.out
 
-gcc -DTEST_CHDIR=1 -DHAVE_CONFIG_H -I.. -g -O -W -Wall \
+gcc -DTEST_CHDIR -g -O -W -Wall \
   chdir-long.c libcoreutils.a
 
 vg='valgrind --track-fds=yes --leak-check=yes --quiet --num-callers=9'
index 90de6edbb42da28a9b06573069690a1278d9392c..379f0db96bc2926a71edb67d16622d3480b96b39 100644 (file)
@@ -1,4 +1,6 @@
-/* Copyright (C) 1995, 1996, 1997, 2000, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000, 2005, 2006 Free Software
+   Foundation, Inc.
+
    This file is part of the GNU C Library.
    Contributed by Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>, 1997.
 
@@ -84,9 +86,7 @@
    In this case, A has been rotated left.  This preserves the ordering of the
    binary tree.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #if __GNUC__
 # define alloca __builtin_alloca
index f8fedb66c60a7dc0a00402085390189616bac097..ceeff89886a0d9aaca8606cf078c33e2f9fcdbce 100644 (file)
@@ -21,9 +21,7 @@
 /* Note: This file requires the locale_charset() function.  See in
    libiconv-1.8/libcharset/INTEGRATE for how to obtain it.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 /* Specification.  */
 #include "unicodeio.h"
index 6a63543702c9af725660ce14ddf56ccc0d4d8c1d..78ead8e3c6379c31d9615de20393541fb0cb649a 100644 (file)
@@ -22,9 +22,8 @@
 # define _GNU_SOURCE    1
 #endif
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
+
 #ifndef IN_LIBINTL
 # include <alloca.h>
 #endif
index c115b37529c1fc8e70d7c236fa07121c12af55fd..f06fa7b1b814f8a3d1b48fd79b9825c53efa2cd8 100644 (file)
@@ -18,9 +18,7 @@
 
 /* Written by Jim Meyering.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include <stdbool.h>
 
index 6cc726a73795093baa8c9b3d7e74f66cd843bf71..8150334cde23dd4ed0ff4c681423050276b1830d 100644 (file)
@@ -18,9 +18,7 @@
 
 /* Written by Paul Eggert <eggert@cs.ucla.edu>.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "xmemxfrm.h"
 
index e30774ab29020630a25f9e00fc434794a06c3bd2..4f09ae2d5090ac7c722ad6694ee5a09df877d3ba 100644 (file)
@@ -16,9 +16,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include <sys/types.h>
 #include <getopt.h>
index 8ce515821f20e834e928240630214b8d29b32801..1f041cb68fbdf7701e10518c565d572711eee3f8 100644 (file)
@@ -85,9 +85,7 @@
 
 #define AUTHORS "Colin Plumb"
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include <getopt.h>
 #include <stdio.h>