1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

Rely on new stdbool behavior

Prefer the C23 style to the C99 style,
since the stdbool module now supports C23.
* lib/acl-internal.h, lib/acl.h, lib/argmatch.c, lib/argmatch.h:
* lib/argp-help.c, lib/argv-iter.h, lib/asyncsafe-spin.c:
* lib/backup-internal.h, lib/backupfile.c, lib/base32.h:
* lib/base64.h, lib/basename-lgpl.c, lib/bitset/base.h:
* lib/c-ctype.h, lib/c-strcasestr.c, lib/canonicalize-lgpl.c:
* lib/canonicalize.c, lib/chdir-long.c, lib/chown.c:
* lib/classpath.h, lib/clean-temp-private.h:
* lib/clean-temp-simple.c, lib/clean-temp-simple.h:
* lib/clean-temp.c, lib/clean-temp.h, lib/cloexec.h:
* lib/close-stream.c, lib/closein.c, lib/closeout.c, lib/closeout.h:
* lib/csharpcomp.h, lib/csharpexec.h, lib/cycle-check.c:
* lib/cycle-check.h, lib/des.h, lib/dfa.h, lib/diffseq.h:
* lib/dirname.h, lib/exclude.c, lib/exclude.h, lib/execute.c:
* lib/execute.h, lib/execvpe.c, lib/fatal-signal.c, lib/fchdir.c:
* lib/file-set.h, lib/filevercmp.c, lib/findprog-in.c:
* lib/findprog.c, lib/findprog.h, lib/fma.c, lib/fnmatch.c:
* lib/fopen.c, lib/freadable.h, lib/freading.h, lib/freopen-safer.c:
* lib/fstrcmp.c, lib/fsusage.h, lib/fts.c, lib/fwritable.h:
* lib/fwriteerror.c, lib/fwriting.h, lib/gen-uni-tables.c:
* lib/getaddrinfo.c, lib/getcwd.c, lib/getloadavg.c:
* lib/getndelim2.c, lib/getpass.c, lib/getrandom.c:
* lib/git-merge-changelog.c, lib/gl_list.h, lib/gl_map.h:
* lib/gl_omap.h, lib/gl_oset.h, lib/gl_set.h, lib/glob.c:
* lib/glthread/cond.h, lib/hamt.h, lib/hard-locale.h:
* lib/hash-triple.h, lib/hash.h, lib/human.h, lib/i-ring.h:
* lib/isapipe.c, lib/javacomp.h, lib/javaexec.h, lib/javaversion.c:
* lib/lchown.c, lib/localeinfo.h, lib/localename.c:
* lib/long-options.h, lib/malloc/dynarray.h, lib/mbchar.h:
* lib/mbfile.h, lib/mbiter.h, lib/mbmemcasecoll.h, lib/mbscasestr.c:
* lib/mbsstr.c, lib/mbuiter.h, lib/mkdir-p.h, lib/modechange.h:
* lib/mountlist.h, lib/nanosleep.c, lib/nonblocking.h:
* lib/nstrftime.c, lib/openat.c, lib/openat.h, lib/os2-spawn.c:
* lib/parse-datetime.h, lib/pipe-filter-aux.c, lib/pipe-filter-gi.c:
* lib/pipe-filter-ii.c, lib/pipe-filter.h, lib/posixtm.h:
* lib/priv-set.c, lib/progreloc.c, lib/propername.c:
* lib/pthread-spin.c, lib/quotearg.c, lib/readtokens.c:
* lib/readtokens0.h, lib/readutmp.c, lib/regex-quote.h:
* lib/regex_internal.h, lib/relocwrapper.c, lib/rename.c:
* lib/renameatu.c, lib/rpmatch.c, lib/same.c, lib/same.h:
* lib/save-cwd.c, lib/savewd.c, lib/savewd.h, lib/spawn-pipe.h:
* lib/spawni.c, lib/stack.h, lib/stat.c, lib/stdckdint.in.h:
* lib/strcasestr.c, lib/strfmon_l.c, lib/striconveh.c:
* lib/striconveha.h, lib/string-buffer.h, lib/strptime.c:
* lib/strstr.c, lib/strtod.c, lib/supersede.h, lib/system-quote.c:
* lib/tempname.c, lib/term-style-control.c:
* lib/term-style-control.h, lib/textstyle.in.h, lib/time_rz.c:
* lib/tmpdir.c, lib/tmpdir.h, lib/tmpfile.c, lib/unicase.in.h:
* lib/unicase/caseprop.h, lib/unicase/invariant.h:
* lib/unicase/u16-casemap.c, lib/unicase/u16-ct-totitle.c:
* lib/unicase/u16-is-invariant.c, lib/unicase/u32-casemap.c:
* lib/unicase/u32-ct-totitle.c, lib/unicase/u32-is-invariant.c:
* lib/unicase/u8-casemap.c, lib/unicase/u8-ct-totitle.c:
* lib/unicase/u8-is-invariant.c, lib/unictype.in.h:
* lib/unigbrk.in.h, lib/unigbrk/u16-grapheme-breaks.c:
* lib/unigbrk/u32-grapheme-breaks.c:
* lib/unigbrk/u8-grapheme-breaks.c:
* lib/unigbrk/uc-grapheme-breaks.c, lib/uniname/uniname.c:
* lib/unistr.in.h, lib/unlinkdir.h, lib/userspec.h, lib/utime.c:
* lib/utimecmp.c, lib/utimens.c, lib/wait-process.h:
* lib/windows-cond.c, lib/windows-spawn.c, lib/windows-spawn.h:
* lib/windows-timedrwlock.c, lib/write-any-file.h, lib/xbinary-io.c:
* lib/xstrtod.h, lib/yesno.h:
* tests/nap.h, tests/qemu.h, tests/test-areadlink-with-size.c:
* tests/test-areadlink.c, tests/test-areadlinkat-with-size.c:
* tests/test-areadlinkat.c, tests/test-base32.c:
* tests/test-base64.c, tests/test-ceil2.c, tests/test-ceilf2.c:
* tests/test-chown.c, tests/test-dirname.c, tests/test-dup-safer.c:
* tests/test-dup3.c, tests/test-exclude.c:
* tests/test-execute-child.c, tests/test-execute-main.c:
* tests/test-execute-script.c, tests/test-explicit_bzero.c:
* tests/test-fchownat.c, tests/test-fcntl-safer.c:
* tests/test-fcntl.c, tests/test-fdutimensat.c:
* tests/test-filenamecat.c, tests/test-floor2.c:
* tests/test-floorf2.c, tests/test-fstatat.c, tests/test-fstrcmp.c:
* tests/test-futimens.c, tests/test-getlogin.h, tests/test-getopt.h:
* tests/test-hard-locale.c, tests/test-hash.c:
* tests/test-idpriv-drop.c, tests/test-idpriv-droptemp.c:
* tests/test-immutable.c, tests/test-intprops.c:
* tests/test-lchown.c, tests/test-link.c, tests/test-linkat.c:
* tests/test-lstat.c, tests/test-mbmemcasecmp.c:
* tests/test-mbmemcasecoll.c, tests/test-mkdir.c:
* tests/test-mkdirat.c, tests/test-mkfifo.c, tests/test-mkfifoat.c:
* tests/test-mknod.c, tests/test-nonblocking-pipe-child.c:
* tests/test-nonblocking-pipe-main.c:
* tests/test-nonblocking-socket-child.c:
* tests/test-nonblocking-socket-main.c, tests/test-open.c:
* tests/test-openat.c, tests/test-pipe.c, tests/test-pipe2.c:
* tests/test-poll.c, tests/test-posix_spawn-chdir.c:
* tests/test-posix_spawn-dup2-stdin.c:
* tests/test-posix_spawn-dup2-stdout.c:
* tests/test-posix_spawn-fchdir.c, tests/test-posix_spawn-open1.c:
* tests/test-posix_spawn-open2.c, tests/test-quotearg-simple.c:
* tests/test-quotearg.c, tests/test-readlink.c:
* tests/test-readlinkat.c, tests/test-readtokens.c:
* tests/test-rename.c, tests/test-renameat.c:
* tests/test-renameatu.c, tests/test-rmdir.c, tests/test-round2.c:
* tests/test-select.h, tests/test-spawn-pipe-child.c:
* tests/test-spawn-pipe-main.c, tests/test-spawn-pipe-script.c:
* tests/test-stack.c, tests/test-stat.c, tests/test-supersede.c:
* tests/test-symlink.c, tests/test-symlinkat.c:
* tests/test-system-quote-main.c:
* tests/test-term-style-control-hello.c:
* tests/test-term-style-control-yes.c, tests/test-timespec.c:
* tests/test-trunc2.c, tests/test-truncf2.c, tests/test-unlink.c:
* tests/test-unlinkat.c, tests/test-userspec.c, tests/test-utime.c:
* tests/test-utimens.c, tests/test-utimensat.c:
* tests/unictype/test-categ_byname.c:
* tests/unigbrk/test-uc-is-grapheme-break.c:
Don’t include stdbool.h.
* modules/acl, modules/xgetcwd:
Don’t depend on stdbool, as these modules don’t use bool.
* modules/argp, modules/bitset, modules/diffseq, modules/file-has-acl:
* modules/gen-uni-tables, modules/getrandom:
* modules/hash-triple-simple, modules/posix_spawn-internal:
* modules/strcasestr, modules/supersede, modules/system-quote:
* modules/uniconv/base, modules/uniname/uniname, modules/utime:
* modules/windows-timedrwlock:
Depend on stdbool, as these modules use bool.
This commit is contained in:
Paul Eggert
2022-09-10 11:41:32 -05:00
parent f5ad0b6b38
commit 2f858e5e43
308 changed files with 149 additions and 337 deletions

122
ChangeLog
View File

@@ -1,5 +1,127 @@
2022-09-10 Paul Eggert <eggert@cs.ucla.edu> 2022-09-10 Paul Eggert <eggert@cs.ucla.edu>
Rely on new stdbool behavior
Prefer the C23 style to the C99 style,
since the stdbool module now supports C23.
* lib/acl-internal.h, lib/acl.h, lib/argmatch.c, lib/argmatch.h:
* lib/argp-help.c, lib/argv-iter.h, lib/asyncsafe-spin.c:
* lib/backup-internal.h, lib/backupfile.c, lib/base32.h:
* lib/base64.h, lib/basename-lgpl.c, lib/bitset/base.h:
* lib/c-ctype.h, lib/c-strcasestr.c, lib/canonicalize-lgpl.c:
* lib/canonicalize.c, lib/chdir-long.c, lib/chown.c:
* lib/classpath.h, lib/clean-temp-private.h:
* lib/clean-temp-simple.c, lib/clean-temp-simple.h:
* lib/clean-temp.c, lib/clean-temp.h, lib/cloexec.h:
* lib/close-stream.c, lib/closein.c, lib/closeout.c, lib/closeout.h:
* lib/csharpcomp.h, lib/csharpexec.h, lib/cycle-check.c:
* lib/cycle-check.h, lib/des.h, lib/dfa.h, lib/diffseq.h:
* lib/dirname.h, lib/exclude.c, lib/exclude.h, lib/execute.c:
* lib/execute.h, lib/execvpe.c, lib/fatal-signal.c, lib/fchdir.c:
* lib/file-set.h, lib/filevercmp.c, lib/findprog-in.c:
* lib/findprog.c, lib/findprog.h, lib/fma.c, lib/fnmatch.c:
* lib/fopen.c, lib/freadable.h, lib/freading.h, lib/freopen-safer.c:
* lib/fstrcmp.c, lib/fsusage.h, lib/fts.c, lib/fwritable.h:
* lib/fwriteerror.c, lib/fwriting.h, lib/gen-uni-tables.c:
* lib/getaddrinfo.c, lib/getcwd.c, lib/getloadavg.c:
* lib/getndelim2.c, lib/getpass.c, lib/getrandom.c:
* lib/git-merge-changelog.c, lib/gl_list.h, lib/gl_map.h:
* lib/gl_omap.h, lib/gl_oset.h, lib/gl_set.h, lib/glob.c:
* lib/glthread/cond.h, lib/hamt.h, lib/hard-locale.h:
* lib/hash-triple.h, lib/hash.h, lib/human.h, lib/i-ring.h:
* lib/isapipe.c, lib/javacomp.h, lib/javaexec.h, lib/javaversion.c:
* lib/lchown.c, lib/localeinfo.h, lib/localename.c:
* lib/long-options.h, lib/malloc/dynarray.h, lib/mbchar.h:
* lib/mbfile.h, lib/mbiter.h, lib/mbmemcasecoll.h, lib/mbscasestr.c:
* lib/mbsstr.c, lib/mbuiter.h, lib/mkdir-p.h, lib/modechange.h:
* lib/mountlist.h, lib/nanosleep.c, lib/nonblocking.h:
* lib/nstrftime.c, lib/openat.c, lib/openat.h, lib/os2-spawn.c:
* lib/parse-datetime.h, lib/pipe-filter-aux.c, lib/pipe-filter-gi.c:
* lib/pipe-filter-ii.c, lib/pipe-filter.h, lib/posixtm.h:
* lib/priv-set.c, lib/progreloc.c, lib/propername.c:
* lib/pthread-spin.c, lib/quotearg.c, lib/readtokens.c:
* lib/readtokens0.h, lib/readutmp.c, lib/regex-quote.h:
* lib/regex_internal.h, lib/relocwrapper.c, lib/rename.c:
* lib/renameatu.c, lib/rpmatch.c, lib/same.c, lib/same.h:
* lib/save-cwd.c, lib/savewd.c, lib/savewd.h, lib/spawn-pipe.h:
* lib/spawni.c, lib/stack.h, lib/stat.c, lib/stdckdint.in.h:
* lib/strcasestr.c, lib/strfmon_l.c, lib/striconveh.c:
* lib/striconveha.h, lib/string-buffer.h, lib/strptime.c:
* lib/strstr.c, lib/strtod.c, lib/supersede.h, lib/system-quote.c:
* lib/tempname.c, lib/term-style-control.c:
* lib/term-style-control.h, lib/textstyle.in.h, lib/time_rz.c:
* lib/tmpdir.c, lib/tmpdir.h, lib/tmpfile.c, lib/unicase.in.h:
* lib/unicase/caseprop.h, lib/unicase/invariant.h:
* lib/unicase/u16-casemap.c, lib/unicase/u16-ct-totitle.c:
* lib/unicase/u16-is-invariant.c, lib/unicase/u32-casemap.c:
* lib/unicase/u32-ct-totitle.c, lib/unicase/u32-is-invariant.c:
* lib/unicase/u8-casemap.c, lib/unicase/u8-ct-totitle.c:
* lib/unicase/u8-is-invariant.c, lib/unictype.in.h:
* lib/unigbrk.in.h, lib/unigbrk/u16-grapheme-breaks.c:
* lib/unigbrk/u32-grapheme-breaks.c:
* lib/unigbrk/u8-grapheme-breaks.c:
* lib/unigbrk/uc-grapheme-breaks.c, lib/uniname/uniname.c:
* lib/unistr.in.h, lib/unlinkdir.h, lib/userspec.h, lib/utime.c:
* lib/utimecmp.c, lib/utimens.c, lib/wait-process.h:
* lib/windows-cond.c, lib/windows-spawn.c, lib/windows-spawn.h:
* lib/windows-timedrwlock.c, lib/write-any-file.h, lib/xbinary-io.c:
* lib/xstrtod.h, lib/yesno.h:
* tests/nap.h, tests/qemu.h, tests/test-areadlink-with-size.c:
* tests/test-areadlink.c, tests/test-areadlinkat-with-size.c:
* tests/test-areadlinkat.c, tests/test-base32.c:
* tests/test-base64.c, tests/test-ceil2.c, tests/test-ceilf2.c:
* tests/test-chown.c, tests/test-dirname.c, tests/test-dup-safer.c:
* tests/test-dup3.c, tests/test-exclude.c:
* tests/test-execute-child.c, tests/test-execute-main.c:
* tests/test-execute-script.c, tests/test-explicit_bzero.c:
* tests/test-fchownat.c, tests/test-fcntl-safer.c:
* tests/test-fcntl.c, tests/test-fdutimensat.c:
* tests/test-filenamecat.c, tests/test-floor2.c:
* tests/test-floorf2.c, tests/test-fstatat.c, tests/test-fstrcmp.c:
* tests/test-futimens.c, tests/test-getlogin.h, tests/test-getopt.h:
* tests/test-hard-locale.c, tests/test-hash.c:
* tests/test-idpriv-drop.c, tests/test-idpriv-droptemp.c:
* tests/test-immutable.c, tests/test-intprops.c:
* tests/test-lchown.c, tests/test-link.c, tests/test-linkat.c:
* tests/test-lstat.c, tests/test-mbmemcasecmp.c:
* tests/test-mbmemcasecoll.c, tests/test-mkdir.c:
* tests/test-mkdirat.c, tests/test-mkfifo.c, tests/test-mkfifoat.c:
* tests/test-mknod.c, tests/test-nonblocking-pipe-child.c:
* tests/test-nonblocking-pipe-main.c:
* tests/test-nonblocking-socket-child.c:
* tests/test-nonblocking-socket-main.c, tests/test-open.c:
* tests/test-openat.c, tests/test-pipe.c, tests/test-pipe2.c:
* tests/test-poll.c, tests/test-posix_spawn-chdir.c:
* tests/test-posix_spawn-dup2-stdin.c:
* tests/test-posix_spawn-dup2-stdout.c:
* tests/test-posix_spawn-fchdir.c, tests/test-posix_spawn-open1.c:
* tests/test-posix_spawn-open2.c, tests/test-quotearg-simple.c:
* tests/test-quotearg.c, tests/test-readlink.c:
* tests/test-readlinkat.c, tests/test-readtokens.c:
* tests/test-rename.c, tests/test-renameat.c:
* tests/test-renameatu.c, tests/test-rmdir.c, tests/test-round2.c:
* tests/test-select.h, tests/test-spawn-pipe-child.c:
* tests/test-spawn-pipe-main.c, tests/test-spawn-pipe-script.c:
* tests/test-stack.c, tests/test-stat.c, tests/test-supersede.c:
* tests/test-symlink.c, tests/test-symlinkat.c:
* tests/test-system-quote-main.c:
* tests/test-term-style-control-hello.c:
* tests/test-term-style-control-yes.c, tests/test-timespec.c:
* tests/test-trunc2.c, tests/test-truncf2.c, tests/test-unlink.c:
* tests/test-unlinkat.c, tests/test-userspec.c, tests/test-utime.c:
* tests/test-utimens.c, tests/test-utimensat.c:
* tests/unictype/test-categ_byname.c:
* tests/unigbrk/test-uc-is-grapheme-break.c:
Dont include stdbool.h.
* modules/acl, modules/xgetcwd:
Dont depend on stdbool, as these modules dont use bool.
* modules/argp, modules/bitset, modules/diffseq, modules/file-has-acl:
* modules/gen-uni-tables, modules/getrandom:
* modules/hash-triple-simple, modules/posix_spawn-internal:
* modules/strcasestr, modules/supersede, modules/system-quote:
* modules/uniconv/base, modules/uniname/uniname, modules/utime:
* modules/windows-timedrwlock:
Depend on stdbool, as these modules use bool.
stdbool: upgrade from C99 to C23 stdbool: upgrade from C99 to C23
Change the stdbool module so that it now emulates C23. Change the stdbool module so that it now emulates C23.
The module now assumes C99. The old module (which assumes The module now assumes C99. The old module (which assumes

View File

@@ -389,7 +389,7 @@ making use of @code{foo} could end up residing in a shared library, and
the executable program using this library could be defining @code{foo} the executable program using this library could be defining @code{foo}
itself). itself).
For header files, such as @code{stdbool.h} or @code{stdint.h}, we provide For header files, such as @code{stdint.h}, we provide
the substitute only if the system doesn't provide a correct one. The the substitute only if the system doesn't provide a correct one. The
template of this replacement is distributed in a slightly different name, template of this replacement is distributed in a slightly different name,
with @samp{.in} inserted before the @samp{.h} extension, so that on with @samp{.in} inserted before the @samp{.h} extension, so that on

View File

@@ -324,8 +324,9 @@ platforms, fixes that may be removed in the future.
Because of the freestanding C99 assumption, Gnulib code can include Because of the freestanding C99 assumption, Gnulib code can include
@code{<float.h>}, @code{<limits.h>}, @code{<stdarg.h>}, @code{<float.h>}, @code{<limits.h>}, @code{<stdarg.h>},
@code{<stdbool.h>}, @code{<stddef.h>}, and @code{<stdint.h>} @code{<stddef.h>}, and @code{<stdint.h>}
unconditionally. Gnulib code can also assume the existence unconditionally; @code{<stdbool.h>} is also in the C99 freestanding
list but is obsolescent as of C23. Gnulib code can also assume the existence
of @code{<ctype.h>}, @code{<errno.h>}, @code{<fcntl.h>}, of @code{<ctype.h>}, @code{<errno.h>}, @code{<fcntl.h>},
@code{<locale.h>}, @code{<signal.h>}, @code{<stdio.h>}, @code{<locale.h>}, @code{<signal.h>}, @code{<stdio.h>},
@code{<stdlib.h>}, @code{<string.h>}, and @code{<time.h>}. Similarly, @code{<stdlib.h>}, @code{<string.h>}, and @code{<time.h>}. Similarly,
@@ -363,7 +364,9 @@ A declaration after a statement, or as the first clause in a
@code{long long int}. @code{long long int}.
@item @item
@code{<stdbool.h>}, assuming the @code{stdbool} module is used. @code{<stdbool.h>}, although Gnulib code no longer uses
it directly, preferring plain @code{bool} via the
@code{stdbool} module instead.
@xref{stdbool.h}. @xref{stdbool.h}.
@item @item

View File

@@ -61,7 +61,7 @@ but it does not assume that signed integer arithmetic wraps around.
@findex TYPE_IS_INTEGER @findex TYPE_IS_INTEGER
@code{TYPE_IS_INTEGER (@var{t})} is an arithmetic constant @code{TYPE_IS_INTEGER (@var{t})} is an arithmetic constant
expression that is 1 if the arithmetic type @var{t} is an integer type. expression that is 1 if the arithmetic type @var{t} is an integer type.
@code{_Bool} counts as an integer type. @code{bool} counts as an integer type.
@findex TYPE_SIGNED @findex TYPE_SIGNED
@code{TYPE_SIGNED (@var{t})} is an arithmetic constant expression @code{TYPE_SIGNED (@var{t})} is an arithmetic constant expression
@@ -140,7 +140,6 @@ values of the integer type @var{t}. These expressions are of the type
Example usage: Example usage:
@example @example
#include <stdbool.h>
#include <sys/types.h> #include <sys/types.h>
#include <intprops.h> #include <intprops.h>
bool bool

View File

@@ -30,8 +30,10 @@ Portability problems not fixed by Gnulib:
@item @item
@samp{_Bool} cannot be used before @code{<stdbool.h>} is included, or if @samp{_Bool} cannot be used before @code{<stdbool.h>} is included, or if
the program is intended to be compiled by a C++ compiler. the program is intended to be compiled by a C++ compiler.
(With the advent of C23, @samp{_Bool} is obsolescent anyway.)
@item @item
You cannot assume that @code{_Bool} is a typedef; it might be a macro. You cannot assume that @code{_Bool} is a typedef; it might be a macro.
For example, C23 allows @code{_Bool} to be a macro.
@item @item
Bit-fields of type @samp{bool} are not supported. Portable code Bit-fields of type @samp{bool} are not supported. Portable code
should use @samp{unsigned int foo : 1;} rather than @samp{bool foo : 1;}. should use @samp{unsigned int foo : 1;} rather than @samp{bool foo : 1;}.

View File

@@ -19,7 +19,6 @@
#include "acl.h" #include "acl.h"
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
/* All systems define the ACL related API in <sys/acl.h>. */ /* All systems define the ACL related API in <sys/acl.h>. */

View File

@@ -20,7 +20,6 @@
#ifndef _GL_ACL_H #ifndef _GL_ACL_H
#define _GL_ACL_H 1 #define _GL_ACL_H 1
#include <stdbool.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@@ -24,7 +24,6 @@
/* Specification. */ /* Specification. */
#include "argmatch.h" #include "argmatch.h"
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -23,7 +23,6 @@
# define ARGMATCH_H_ 1 # define ARGMATCH_H_ 1
# include <limits.h> # include <limits.h>
# include <stdbool.h>
# include <stddef.h> # include <stddef.h>
# include <stdio.h> # include <stdio.h>
# include <string.h> /* memcmp */ # include <string.h> /* memcmp */

View File

@@ -26,7 +26,6 @@
#include <alloca.h> #include <alloca.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -15,7 +15,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdio.h> #include <stdio.h>
#include <stdbool.h>
/* Definition of _GL_ARG_NONNULL. */ /* Definition of _GL_ARG_NONNULL. */
#include "arg-nonnull.h" #include "arg-nonnull.h"

View File

@@ -21,12 +21,10 @@
/* Specification. */ /* Specification. */
#include "asyncsafe-spin.h" #include "asyncsafe-spin.h"
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#if defined _AIX #if defined _AIX
# include <sys/atomic_op.h> # include <sys/atomic_op.h>
#endif #endif
#if 0x590 <= __SUNPRO_C && __STDC__ #if 0x590 <= __SUNPRO_C && __STDC__
# define asm __asm # define asm __asm
#endif #endif

View File

@@ -16,7 +16,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include "backupfile.h" #include "backupfile.h"
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
extern char *backupfile_internal (int, char const *, enum backup_type, bool) extern char *backupfile_internal (int, char const *, enum backup_type, bool)

View File

@@ -25,7 +25,6 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <stdckdint.h> #include <stdckdint.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -21,9 +21,6 @@
/* Get idx_t. */ /* Get idx_t. */
# include <idx.h> # include <idx.h>
/* Get bool. */
# include <stdbool.h>
/* This uses that the expression (n+(k-1))/k means the smallest /* This uses that the expression (n+(k-1))/k means the smallest
integer >= n/k, i.e., the ceiling of n/k. */ integer >= n/k, i.e., the ceiling of n/k. */
# define BASE32_LENGTH(inlen) ((((inlen) + 4) / 5) * 8) # define BASE32_LENGTH(inlen) ((((inlen) + 4) / 5) * 8)

View File

@@ -21,9 +21,6 @@
/* Get idx_t. */ /* Get idx_t. */
# include <idx.h> # include <idx.h>
/* Get bool. */
# include <stdbool.h>
# ifdef __cplusplus # ifdef __cplusplus
extern "C" { extern "C" {
# endif # endif

View File

@@ -21,7 +21,6 @@
/* Specification. */ /* Specification. */
#include "basename-lgpl.h" #include "basename-lgpl.h"
#include <stdbool.h>
#include <string.h> #include <string.h>
#include "filename.h" #include "filename.h"

View File

@@ -22,7 +22,6 @@
#define _BITSET_BASE_H #define _BITSET_BASE_H
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> /* because Gnulib's <stdlib.h> may '#define free ...' */ #include <stdlib.h> /* because Gnulib's <stdlib.h> may '#define free ...' */
#include <string.h> /* ffsl */ #include <string.h> /* ffsl */

View File

@@ -23,8 +23,6 @@
#ifndef C_CTYPE_H #ifndef C_CTYPE_H
#define C_CTYPE_H #define C_CTYPE_H
#include <stdbool.h>
#ifndef _GL_INLINE_HEADER_BEGIN #ifndef _GL_INLINE_HEADER_BEGIN
#error "Please include config.h first." #error "Please include config.h first."
#endif #endif

View File

@@ -20,7 +20,6 @@
/* Specification. */ /* Specification. */
#include "c-strcasestr.h" #include "c-strcasestr.h"
#include <stdbool.h>
#include <string.h> #include <string.h>
#include "c-ctype.h" #include "c-ctype.h"

View File

@@ -30,7 +30,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -20,7 +20,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -23,7 +23,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -25,7 +25,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@@ -15,8 +15,6 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
/* Return the new CLASSPATH value. The given classpaths are prepended to /* Return the new CLASSPATH value. The given classpaths are prepended to
the current CLASSPATH value. If use_minimal_classpath, the current the current CLASSPATH value. If use_minimal_classpath, the current
CLASSPATH is ignored. */ CLASSPATH is ignored. */

View File

@@ -17,7 +17,6 @@
#ifndef _CLEAN_TEMP_PRIVATE_H #ifndef _CLEAN_TEMP_PRIVATE_H
#define _CLEAN_TEMP_PRIVATE_H #define _CLEAN_TEMP_PRIVATE_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include "gl_list.h" #include "gl_list.h"
#include "asyncsafe-spin.h" #include "asyncsafe-spin.h"

View File

@@ -24,7 +24,6 @@
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <signal.h> #include <signal.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -18,8 +18,6 @@
#ifndef _CLEAN_TEMP_SIMPLE_H #ifndef _CLEAN_TEMP_SIMPLE_H
#define _CLEAN_TEMP_SIMPLE_H #define _CLEAN_TEMP_SIMPLE_H
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@@ -24,7 +24,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h> #include <signal.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -18,7 +18,6 @@
#ifndef _CLEAN_TEMP_H #ifndef _CLEAN_TEMP_H
#define _CLEAN_TEMP_H #define _CLEAN_TEMP_H
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -15,8 +15,6 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
/* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true,
or clear the flag if VALUE is false. or clear the flag if VALUE is false.
Return 0 on success, or -1 on error with 'errno' set. Return 0 on success, or -1 on error with 'errno' set.

View File

@@ -20,7 +20,6 @@
#include "close-stream.h" #include "close-stream.h"
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include "fpending.h" #include "fpending.h"

View File

@@ -20,7 +20,6 @@
#include "closein.h" #include "closein.h"
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -21,7 +21,6 @@
#include "closeout.h" #include "closeout.h"
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -19,8 +19,6 @@
#ifndef CLOSEOUT_H #ifndef CLOSEOUT_H
# define CLOSEOUT_H 1 # define CLOSEOUT_H 1
# include <stdbool.h>
# ifdef __cplusplus # ifdef __cplusplus
extern "C" { extern "C" {
# endif # endif

View File

@@ -18,8 +18,6 @@
#ifndef _CSHARPCOMP_H #ifndef _CSHARPCOMP_H
#define _CSHARPCOMP_H #define _CSHARPCOMP_H
#include <stdbool.h>
/* Compile a set of C# source files to bytecode. /* Compile a set of C# source files to bytecode.
sources is an array of source file names, including resource files. sources is an array of source file names, including resource files.
libdirs is a list of directories to be searched for libraries. libdirs is a list of directories to be searched for libraries.

View File

@@ -18,8 +18,6 @@
#ifndef _CSHARPEXEC_H #ifndef _CSHARPEXEC_H
#define _CSHARPEXEC_H #define _CSHARPEXEC_H
#include <stdbool.h>
typedef bool execute_fn (const char *progname, typedef bool execute_fn (const char *progname,
const char *prog_path, const char * const *prog_argv, const char *prog_path, const char * const *prog_argv,
void *private_data); void *private_data);

View File

@@ -25,7 +25,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdbool.h>
#include "assure.h" #include "assure.h"

View File

@@ -21,7 +21,6 @@
# define CYCLE_CHECK_H 1 # define CYCLE_CHECK_H 1
# include <stdint.h> # include <stdint.h>
# include <stdbool.h>
# include "dev-ino.h" # include "dev-ino.h"
# include "same-inode.h" # include "same-inode.h"

View File

@@ -23,7 +23,6 @@
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h>
/* /*
* Encryption/Decryption context of DES * Encryption/Decryption context of DES

View File

@@ -23,7 +23,6 @@
#include "idx.h" #include "idx.h"
#include <regex.h> #include <regex.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -70,7 +70,6 @@
Before including this file, you also need to include: Before including this file, you also need to include:
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include "minmax.h" #include "minmax.h"
*/ */

View File

@@ -19,7 +19,6 @@
#ifndef DIRNAME_H_ #ifndef DIRNAME_H_
# define DIRNAME_H_ 1 # define DIRNAME_H_ 1
# include <stdbool.h>
# include <stdlib.h> # include <stdlib.h>
# include "filename.h" # include "filename.h"
# include "basename-lgpl.h" # include "basename-lgpl.h"

View File

@@ -23,8 +23,6 @@
#include <config.h> #include <config.h>
#include <stdbool.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <stddef.h> #include <stddef.h>

View File

@@ -19,7 +19,6 @@
#ifndef _GL_EXCLUDE_H #ifndef _GL_EXCLUDE_H
#define _GL_EXCLUDE_H 1 #define _GL_EXCLUDE_H 1
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
/* Written by Paul Eggert <eggert@twinsun.com> /* Written by Paul Eggert <eggert@twinsun.com>

View File

@@ -23,7 +23,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -18,8 +18,6 @@
#ifndef _EXECUTE_H #ifndef _EXECUTE_H
#define _EXECUTE_H #define _EXECUTE_H
#include <stdbool.h>
/* Execute a command, optionally redirecting any of the three standard file /* Execute a command, optionally redirecting any of the three standard file
descriptors to /dev/null. Return its exit code. descriptors to /dev/null. Return its exit code.
If it didn't terminate correctly, exit if exit_on_error is true, otherwise If it didn't terminate correctly, exit if exit_on_error is true, otherwise

View File

@@ -26,7 +26,6 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include "findprog.h" #include "findprog.h"

View File

@@ -21,7 +21,6 @@
/* Specification. */ /* Specification. */
#include "fatal-signal.h" #include "fatal-signal.h"
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -22,7 +22,6 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -18,7 +18,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdbool.h>
#include "hash.h" #include "hash.h"

View File

@@ -20,7 +20,6 @@
#include <config.h> #include <config.h>
#include "filevercmp.h" #include "filevercmp.h"
#include <stdbool.h>
#include <c-ctype.h> #include <c-ctype.h>
#include <limits.h> #include <limits.h>
#include <idx.h> #include <idx.h>

View File

@@ -22,7 +22,6 @@
#include "findprog.h" #include "findprog.h"
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -21,7 +21,6 @@
/* Specification. */ /* Specification. */
#include "findprog.h" #include "findprog.h"
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -18,8 +18,6 @@
#ifndef _FINDPROG_H #ifndef _FINDPROG_H
#define _FINDPROG_H #define _FINDPROG_H
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@@ -24,7 +24,6 @@
#include <math.h> #include <math.h>
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#if HAVE_FEGETROUND #if HAVE_FEGETROUND

View File

@@ -38,7 +38,6 @@
#include <wchar.h> #include <wchar.h>
#include <wctype.h> #include <wctype.h>
#include <stddef.h> #include <stddef.h>
#include <stdbool.h>
/* We need some of the locale data (the collation sequence information) /* We need some of the locale data (the collation sequence information)
but there is no interface to get this information in general. Therefore but there is no interface to get this information in general. Therefore

View File

@@ -39,7 +39,6 @@ orig_fopen (const char *filename, const char *mode)
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

View File

@@ -14,7 +14,6 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
/* Return true if the stream STREAM supports reading, false if it supports /* Return true if the stream STREAM supports reading, false if it supports

View File

@@ -14,7 +14,6 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
/* Return true if the stream STREAM is opened read-only, or if the /* Return true if the stream STREAM is opened read-only, or if the

View File

@@ -25,7 +25,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <unistd.h> #include <unistd.h>
/* Guarantee that FD is open; all smaller FDs must already be open. /* Guarantee that FD is open; all smaller FDs must already be open.

View File

@@ -22,7 +22,6 @@
#include "fstrcmp.h" #include "fstrcmp.h"
#include <string.h> #include <string.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -22,7 +22,6 @@
# define FSUSAGE_H_ # define FSUSAGE_H_
# include <stdint.h> # include <stdint.h>
# include <stdbool.h>
struct fs_usage struct fs_usage
{ {

View File

@@ -63,7 +63,6 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <stdalign.h> #include <stdalign.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -14,7 +14,6 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
/* Return true if the stream STREAM supports writing, false if it supports /* Return true if the stream STREAM supports writing, false if it supports

View File

@@ -21,7 +21,6 @@
#include "fwriteerror.h" #include "fwriteerror.h"
#include <errno.h> #include <errno.h>
#include <stdbool.h>
static int static int
do_fwriteerror (FILE *fp, bool ignore_ebadf) do_fwriteerror (FILE *fp, bool ignore_ebadf)

View File

@@ -14,7 +14,6 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
/* Return true if the stream STREAM is opened write-only or /* Return true if the stream STREAM is opened write-only or

View File

@@ -37,7 +37,6 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -39,8 +39,6 @@
/* Get snprintf. */ /* Get snprintf. */
#include <stdio.h> #include <stdio.h>
#include <stdbool.h>
#include "gettext.h" #include "gettext.h"
#define _(String) gettext (String) #define _(String) gettext (String)
#define N_(String) String #define N_(String) String

View File

@@ -28,7 +28,6 @@
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <fcntl.h> /* For AT_FDCWD on Solaris 9. */ #include <fcntl.h> /* For AT_FDCWD on Solaris 9. */

View File

@@ -82,7 +82,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
# include <sys/types.h> # include <sys/types.h>

View File

@@ -23,7 +23,6 @@
#include "getndelim2.h" #include "getndelim2.h"
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -28,8 +28,6 @@
#if !(defined _WIN32 && !defined __CYGWIN__) #if !(defined _WIN32 && !defined __CYGWIN__)
# include <stdbool.h>
# if HAVE_DECL___FSETLOCKING && HAVE___FSETLOCKING # if HAVE_DECL___FSETLOCKING && HAVE___FSETLOCKING
# if HAVE_STDIO_EXT_H # if HAVE_STDIO_EXT_H
# include <stdio_ext.h> # include <stdio_ext.h>

View File

@@ -23,7 +23,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdbool.h>
#include <unistd.h> #include <unistd.h>
#if defined _WIN32 && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__

View File

@@ -157,7 +157,6 @@
#include <getopt.h> #include <getopt.h>
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -18,7 +18,6 @@
#ifndef _GL_LIST_H #ifndef _GL_LIST_H
#define _GL_LIST_H #define _GL_LIST_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#ifndef _GL_INLINE_HEADER_BEGIN #ifndef _GL_INLINE_HEADER_BEGIN

View File

@@ -18,7 +18,6 @@
#ifndef _GL_MAP_H #ifndef _GL_MAP_H
#define _GL_MAP_H #define _GL_MAP_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#ifndef _GL_INLINE_HEADER_BEGIN #ifndef _GL_INLINE_HEADER_BEGIN

View File

@@ -18,7 +18,6 @@
#ifndef _GL_OMAP_H #ifndef _GL_OMAP_H
#define _GL_OMAP_H #define _GL_OMAP_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#ifndef _GL_INLINE_HEADER_BEGIN #ifndef _GL_INLINE_HEADER_BEGIN

View File

@@ -18,7 +18,6 @@
#ifndef _GL_OSET_H #ifndef _GL_OSET_H
#define _GL_OSET_H #define _GL_OSET_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#ifndef _GL_INLINE_HEADER_BEGIN #ifndef _GL_INLINE_HEADER_BEGIN

View File

@@ -18,7 +18,6 @@
#ifndef _GL_SET_H #ifndef _GL_SET_H
#define _GL_SET_H #define _GL_SET_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#ifndef _GL_INLINE_HEADER_BEGIN #ifndef _GL_INLINE_HEADER_BEGIN

View File

@@ -31,7 +31,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <assert.h> #include <assert.h>

View File

@@ -49,7 +49,6 @@
#define _GLTHREAD_COND_H #define _GLTHREAD_COND_H
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>

View File

@@ -68,7 +68,6 @@ _GL_INLINE_HEADER_BEGIN
# define GL_HAMT_THREAD_SAFE 0 # define GL_HAMT_THREAD_SAFE 0
#endif #endif
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -18,8 +18,6 @@
#ifndef HARD_LOCALE_H_ #ifndef HARD_LOCALE_H_
# define HARD_LOCALE_H_ 1 # define HARD_LOCALE_H_ 1
# include <stdbool.h>
/* Return true if the specified CATEGORY of the current locale is hard, i.e. /* Return true if the specified CATEGORY of the current locale is hard, i.e.
different from the C or POSIX locale that has a fixed behavior. different from the C or POSIX locale that has a fixed behavior.
CATEGORY must be one of the LC_* values, but not LC_ALL. */ CATEGORY must be one of the LC_* values, but not LC_ALL. */

View File

@@ -21,7 +21,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdbool.h>
/* Describe a just-created or just-renamed destination file. */ /* Describe a just-created or just-renamed destination file. */
struct F_triple struct F_triple

View File

@@ -25,7 +25,6 @@
# define HASH_H_ # define HASH_H_
# include <stdio.h> # include <stdio.h>
# include <stdbool.h>
# ifdef __cplusplus # ifdef __cplusplus
extern "C" { extern "C" {

View File

@@ -21,7 +21,6 @@
# define HUMAN_H_ 1 # define HUMAN_H_ 1
# include <limits.h> # include <limits.h>
# include <stdbool.h>
# include <stdint.h> # include <stdint.h>
# include <unistd.h> # include <unistd.h>

View File

@@ -14,7 +14,6 @@
You should have received a copy of the GNU Lesser General Public License You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#include <stdbool.h>
#include "verify.h" #include "verify.h"
enum { I_RING_SIZE = 4 }; enum { I_RING_SIZE = 4 };

View File

@@ -53,7 +53,6 @@ isapipe (int fd)
#else #else
/* Unix platforms. */ /* Unix platforms. */
# include <stdbool.h>
# include <sys/types.h> # include <sys/types.h>
# include <sys/stat.h> # include <sys/stat.h>
# include <unistd.h> # include <unistd.h>

View File

@@ -18,8 +18,6 @@
#ifndef _JAVACOMP_H #ifndef _JAVACOMP_H
#define _JAVACOMP_H #define _JAVACOMP_H
#include <stdbool.h>
/* Compile a Java source file to bytecode. /* Compile a Java source file to bytecode.
java_sources is an array of source file names. java_sources is an array of source file names.
classpaths is a list of pathnames to be prepended to the CLASSPATH. classpaths is a list of pathnames to be prepended to the CLASSPATH.

View File

@@ -18,8 +18,6 @@
#ifndef _JAVAEXEC_H #ifndef _JAVAEXEC_H
#define _JAVAEXEC_H #define _JAVAEXEC_H
#include <stdbool.h>
typedef bool execute_fn (const char *progname, typedef bool execute_fn (const char *progname,
const char *prog_path, const char * const *prog_argv, const char *prog_path, const char * const *prog_argv,
void *private_data); void *private_data);

View File

@@ -21,7 +21,6 @@
#include "javaversion.h" #include "javaversion.h"
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -23,7 +23,6 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@@ -20,7 +20,6 @@
/* Written by Paul Eggert. */ /* Written by Paul Eggert. */
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include <wchar.h> #include <wchar.h>
struct localeinfo struct localeinfo

View File

@@ -24,7 +24,6 @@
#include "localename.h" #include "localename.h"
#include <limits.h> #include <limits.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <locale.h> #include <locale.h>

View File

@@ -20,8 +20,6 @@
#ifndef LONG_OPTIONS_H_ #ifndef LONG_OPTIONS_H_
# define LONG_OPTIONS_H_ 1 # define LONG_OPTIONS_H_ 1
# include <stdbool.h>
void parse_long_options (int _argc, void parse_long_options (int _argc,
char **_argv, char **_argv,
const char *_command_name, const char *_command_name,

View File

@@ -94,7 +94,6 @@
#ifndef _DYNARRAY_H #ifndef _DYNARRAY_H
#define _DYNARRAY_H #define _DYNARRAY_H
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>

View File

@@ -144,7 +144,6 @@
#ifndef _MBCHAR_H #ifndef _MBCHAR_H
#define _MBCHAR_H 1 #define _MBCHAR_H 1
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <wchar.h> #include <wchar.h>
#include <wctype.h> #include <wctype.h>

View File

@@ -48,7 +48,6 @@
#define _MBFILE_H 1 #define _MBFILE_H 1
#include <assert.h> #include <assert.h>
#include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <wchar.h> #include <wchar.h>

View File

@@ -83,7 +83,6 @@
#define _MBITER_H 1 #define _MBITER_H 1
#include <assert.h> #include <assert.h>
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <wchar.h> #include <wchar.h>

Some files were not shown because too many files have changed in this diff Show More