diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-10 11:41:32 -0500 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-10 11:45:08 -0500 |
commit | 2f858e5e4392f6e0dc60ab92670a25eaa9212135 (patch) | |
tree | ace11cf0f453f33370f4266c609c284cf4c25dcb /modules | |
parent | f5ad0b6b38b2c915cd0923ba6160bf806e24b1ce (diff) | |
download | gnulib-2f858e5e4392f6e0dc60ab92670a25eaa9212135.tar.gz |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/acl | 1 | ||||
-rw-r--r-- | modules/argp | 1 | ||||
-rw-r--r-- | modules/bitset | 1 | ||||
-rw-r--r-- | modules/diffseq | 1 | ||||
-rw-r--r-- | modules/file-has-acl | 1 | ||||
-rw-r--r-- | modules/gen-uni-tables | 1 | ||||
-rw-r--r-- | modules/getrandom | 1 | ||||
-rw-r--r-- | modules/hash-triple-simple | 1 | ||||
-rw-r--r-- | modules/posix_spawn-internal | 1 | ||||
-rw-r--r-- | modules/strcasestr | 1 | ||||
-rw-r--r-- | modules/supersede | 1 | ||||
-rw-r--r-- | modules/system-quote | 1 | ||||
-rw-r--r-- | modules/uniconv/base | 1 | ||||
-rw-r--r-- | modules/uniname/uniname | 1 | ||||
-rw-r--r-- | modules/utime | 1 | ||||
-rw-r--r-- | modules/windows-timedrwlock | 1 | ||||
-rw-r--r-- | modules/xgetcwd | 1 |
17 files changed, 15 insertions, 2 deletions
diff --git a/modules/acl b/modules/acl index a0a5e459f1..1a3a14e6c2 100644 --- a/modules/acl +++ b/modules/acl @@ -11,7 +11,6 @@ gettext-h qcopy-acl qset-acl quote -stdbool configure.ac: diff --git a/modules/argp b/modules/argp index 85eefe2b14..74519a4b86 100644 --- a/modules/argp +++ b/modules/argp @@ -32,6 +32,7 @@ extensions vsnprintf sleep stdalign +stdbool stdio strerror memchr diff --git a/modules/bitset b/modules/bitset index 8c9cb7cc89..1f2a232512 100644 --- a/modules/bitset +++ b/modules/bitset @@ -24,6 +24,7 @@ fopen-gnu gettext-h integer_length_l obstack +stdbool xalloc configure.ac: diff --git a/modules/diffseq b/modules/diffseq index 7591521ed9..d77778ba15 100644 --- a/modules/diffseq +++ b/modules/diffseq @@ -6,6 +6,7 @@ lib/diffseq.h Depends-on: c99 +stdbool configure.ac: diff --git a/modules/file-has-acl b/modules/file-has-acl index c41cde1d4b..c5f7b27364 100644 --- a/modules/file-has-acl +++ b/modules/file-has-acl @@ -10,6 +10,7 @@ Depends-on: acl-permissions free-posix stat +stdbool configure.ac: gl_FILE_HAS_ACL diff --git a/modules/gen-uni-tables b/modules/gen-uni-tables index b384471fa1..c1c1045f68 100644 --- a/modules/gen-uni-tables +++ b/modules/gen-uni-tables @@ -9,6 +9,7 @@ lib/unictype/3levelbit.h Depends-on: memcmp +stdbool strdup strstr-simple diff --git a/modules/getrandom b/modules/getrandom index cb4317e9f7..fa468ed7f3 100644 --- a/modules/getrandom +++ b/modules/getrandom @@ -9,6 +9,7 @@ Depends-on: sys_random fcntl-h [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1] minmax [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1] +stdbool [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1] open [case $host_os in mingw*) false;; *) test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1;; esac] configure.ac: diff --git a/modules/hash-triple-simple b/modules/hash-triple-simple index 1ef3209d78..ebb46ee4ad 100644 --- a/modules/hash-triple-simple +++ b/modules/hash-triple-simple @@ -8,6 +8,7 @@ lib/hash-triple.h Depends-on: hash-pjw same-inode +stdbool configure.ac: diff --git a/modules/posix_spawn-internal b/modules/posix_spawn-internal index 9dfe24cc66..34a4aaa5f0 100644 --- a/modules/posix_spawn-internal +++ b/modules/posix_spawn-internal @@ -20,6 +20,7 @@ concat-filename [test $HAVE_POSIX_SPAWN = 0] findprog-in [test $HAVE_POSIX_SPAWN = 0] free-posix [test $HAVE_POSIX_SPAWN = 0] malloca [test $HAVE_POSIX_SPAWN = 0] +stdbool [test $HAVE_POSIX_SPAWN = 0] windows-spawn [test $HAVE_POSIX_SPAWN = 0] configure.ac: diff --git a/modules/strcasestr b/modules/strcasestr index ed7b327ec2..d752ec9ccd 100644 --- a/modules/strcasestr +++ b/modules/strcasestr @@ -5,6 +5,7 @@ Files: lib/strcasestr.c Depends-on: +stdbool strcasestr-simple configure.ac: diff --git a/modules/supersede b/modules/supersede index 4dbe887648..70f3fdc482 100644 --- a/modules/supersede +++ b/modules/supersede @@ -9,6 +9,7 @@ m4/supersede.m4 Depends-on: c99 fcntl-h +stdbool sys_stat clean-temp tempname diff --git a/modules/system-quote b/modules/system-quote index 9af74dca50..b704684dfb 100644 --- a/modules/system-quote +++ b/modules/system-quote @@ -7,6 +7,7 @@ lib/system-quote.c Depends-on: sh-quote +stdbool xalloc configure.ac: diff --git a/modules/uniconv/base b/modules/uniconv/base index 9f059498c4..5d0560895a 100644 --- a/modules/uniconv/base +++ b/modules/uniconv/base @@ -10,6 +10,7 @@ m4/libunistring-base.m4 Depends-on: gen-header +stdbool unitypes configure.ac: diff --git a/modules/uniname/uniname b/modules/uniname/uniname index b35437d314..72f485d325 100644 --- a/modules/uniname/uniname +++ b/modules/uniname/uniname @@ -10,6 +10,7 @@ Depends-on: uniname/base attribute memcmp +stdbool c99 configure.ac: diff --git a/modules/utime b/modules/utime index f09e57346d..b61c26a0f8 100644 --- a/modules/utime +++ b/modules/utime @@ -11,6 +11,7 @@ time filename [test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1] malloca [test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1] stat [test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1] +stdbool [test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1] configure.ac: gl_FUNC_UTIME diff --git a/modules/windows-timedrwlock b/modules/windows-timedrwlock index f9469b159d..466e7339b1 100644 --- a/modules/windows-timedrwlock +++ b/modules/windows-timedrwlock @@ -8,6 +8,7 @@ lib/windows-initguard.h Depends-on: errno +stdbool time gettimeofday diff --git a/modules/xgetcwd b/modules/xgetcwd index 21cef522cf..9660d4fb2d 100644 --- a/modules/xgetcwd +++ b/modules/xgetcwd @@ -9,7 +9,6 @@ m4/xgetcwd.m4 Depends-on: getcwd xalloc -stdbool configure.ac: gl_XGETCWD |