+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
'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>.
$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
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>
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
/* 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"
/* 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 */
/* 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
/* Written by Paul Eggert. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "fd-reopen.h"
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>
/* Written by Paul Eggert <eggert@cs.ucla.edu>. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "memxfrm.h"
/* 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
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
* 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"
/* Written by Paul Eggert. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "randint.h"
/* Written by Paul Eggert. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "randperm.h"
/* Written by Paul Eggert. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "randread.h"
/* 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. */
Scott G. Miller's sha1.c
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "sha256.h"
Scott G. Miller's sha1.c
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "sha512.h"
/* 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
/* Written by Paul Eggert and Jim Meyering. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "stdopen.h"
/* 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
/* Written by Paul Eggert. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "strnumcmp-in.h"
/* 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
/* Written by Paul Eggert. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "strnumcmp-in.h"
#!/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
# 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'
-/* 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.
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
/* 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"
# define _GNU_SOURCE 1
#endif
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
+
#ifndef IN_LIBINTL
# include <alloca.h>
#endif
/* Written by Jim Meyering. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include <stdbool.h>
/* Written by Paul Eggert <eggert@cs.ucla.edu>. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "xmemxfrm.h"
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>
#define AUTHORS "Colin Plumb"
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include <getopt.h>
#include <stdio.h>