1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
emacs/lib
Paul Eggert f6fb2b9e1f Port better to C23 bool+true+false keywords
C23 is adding the C++ keywords bool, true, and false;
prefer them to <stdbool.h> if they are available.
* admin/merge-gnulib (GNULIB_MODULES):
Add stdbool, which emulates C23 on pre-C23 platforms.
(AVOIDED_MODULES): Remove stdbool; Gnulib has renamed
this module to stdbool-c99 and nobody uses it so it does
not need to be avoided.
* m4/c-bool.m4: New file, from Gnulib stdbool module.
* lib-src/seccomp-filter.c, src/conf_post.h, src/dynlib.h:
* src/emacs-module.c, src/nsterm.m, src/systhread.h:
* test/src/emacs-module-resources/mod-test.c:
Use the C23 style and use bool without including <stdbool.h>.
The Gnulib stdbool module causes config.h to include stdbool.h
on pre-C23 platforms.
* src/emacs-module.h.in:
Don’t include <stdbool.h> if C23 or later, or if
it has already been included.
2022-09-28 01:09:01 -07:00
..
malloc Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
_Noreturn.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
acl_entries.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
acl-errno-valid.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
acl-internal.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
acl-internal.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
acl.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
af_alg.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
alloca.in.h Update from gnulib 2022-01-04 13:17:25 -08:00
allocator.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
allocator.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
arg-nonnull.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
assert.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
at-func.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
attribute.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
binary-io.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
binary-io.h Update from gnulib 2022-01-04 13:17:25 -08:00
byteswap.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
c-ctype.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
c-ctype.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
c-strcase.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
c-strcasecmp.c Update from gnulib 2022-01-04 13:17:25 -08:00
c-strncasecmp.c Update from gnulib 2022-01-04 13:17:25 -08:00
c++defs.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
canonicalize-lgpl.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
careadlinkat.c Update from gnulib 2022-01-04 13:17:25 -08:00
careadlinkat.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cdefs.h Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
cloexec.c Update from gnulib 2022-01-04 13:17:25 -08:00
cloexec.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
close-stream.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
close-stream.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
copy-file-range.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
count-leading-zeros.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
count-leading-zeros.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
count-one-bits.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
count-one-bits.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
count-trailing-zeros.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
count-trailing-zeros.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
diffseq.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
dirent.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dirfd.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dtoastr.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
dtotimespec.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
dup2.c Update from gnulib 2022-01-04 13:17:25 -08:00
dynarray.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
eloop-threshold.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
errno.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
euidaccess.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
execinfo.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
execinfo.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
explicit_bzero.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
faccessat.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
fchmodat.c Update from Gnulib by running admin/merge-gnulib 2022-07-06 00:00:18 -05:00
fcntl.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
fcntl.in.h Update from Gnulib by running admin/merge-gnulib 2022-04-08 17:33:16 -07:00
fdopendir.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
file-has-acl.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
filemode.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
filemode.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
filename.h Update from gnulib 2022-01-04 13:17:25 -08:00
filevercmp.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
filevercmp.h Update from Gnulib by running admin/merge-gnulib 2022-07-06 00:00:18 -05:00
fingerprint.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
fingerprint.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
flexmember.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
fpending.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
fpending.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
free.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
fstatat.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
fsusage.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
fsusage.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
fsync.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ftoastr.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
ftoastr.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
futimens.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
get-permissions.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
getdtablesize.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getgroups.c Update from gnulib 2022-01-04 13:17:25 -08:00
getloadavg.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
getopt1.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt_int.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt-cdefs.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt-core.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt-ext.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt-pfx-core.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt-pfx-ext.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getopt.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getrandom.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
gettext.h Update from gnulib 2022-01-04 13:17:25 -08:00
gettime.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
gettimeofday.c Update from gnulib 2022-01-04 13:17:25 -08:00
gnulib.mk.in Port better to C23 bool+true+false keywords 2022-09-28 01:09:01 -07:00
group-member.c Update from Gnulib by running admin/merge-gnulib 2022-08-17 18:51:34 -07:00
idx.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ieee754.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ignore-value.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
intprops-internal.h Update from Gnulib by running admin/merge-gnulib 2022-08-17 18:51:34 -07:00
intprops.h Update from Gnulib by running admin/merge-gnulib 2022-08-17 18:51:34 -07:00
inttypes.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
lchmod.c Update from Gnulib by running admin/merge-gnulib 2022-07-06 00:00:18 -05:00
libc-config.h Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
limits.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
lstat.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
Makefile.in Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
malloc.c Update from gnulib 2022-01-04 13:17:25 -08:00
md5-stream.c Update from gnulib 2022-01-04 13:17:25 -08:00
md5.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
md5.h Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
memmem.c Update from gnulib 2022-01-04 13:17:25 -08:00
mempcpy.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
memrchr.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
min-max.h
mini-gmp-gnulib.c Update from Gnulib by running admin/merge-gnulib 2022-04-08 17:33:16 -07:00
mini-gmp.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
mini-gmp.h Update from Gnulib by running admin/merge-gnulib 2022-07-06 00:00:18 -05:00
minmax.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mkostemp.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mktime-internal.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mktime.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
nanosleep.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
nproc.c Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
nproc.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
nstrftime.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
open.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
openat-die.c Limit <config.h>’s includes 2016-09-30 12:38:52 -07:00
openat-priv.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
openat-proc.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
openat.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
pathmax.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pipe2.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
pselect.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pthread_sigmask.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
qcopy-acl.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
rawmemchr.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
rawmemchr.valgrind ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
readlink.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
readlinkat.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
realloc.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
regcomp.c Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
regex_internal.c Update from Gnulib by running admin/merge-gnulib 2022-04-08 17:33:16 -07:00
regex_internal.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
regex.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
regex.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
regexec.c Update from Gnulib by running admin/merge-gnulib 2022-04-08 17:33:16 -07:00
root-uid.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
save-cwd.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
save-cwd.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
scratch_buffer.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
set-permissions.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
sha1.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
sha1.h Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
sha256.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
sha256.h Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
sha512.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
sha512.h Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
sig2str.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
sig2str.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
sigdescr_np.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
signal.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
stat-time.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
stat-time.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
stdalign.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
stdckdint.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
stddef.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
stdint.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
stdio-impl.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
stdio.in.h Update from gnulib 2022-01-04 13:17:25 -08:00
stdlib.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
stpcpy.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
str-two-way.h Update from Gnulib by running admin/merge-gnulib 2022-07-06 00:00:18 -05:00
strftime.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
string.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
strnlen.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
strtoimax.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
strtol.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
strtoll.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
symlink.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
sys_random.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
sys_select.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
sys_stat.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
sys_time.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sys_types.in.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tempname.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
tempname.h Update from Gnulib by running admin/merge-gnulib 2022-08-17 18:51:34 -07:00
time_r.c Update from gnulib 2022-01-04 13:17:25 -08:00
time_rz.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
time-internal.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
time.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
timegm.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
timespec-add.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
timespec-sub.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
timespec.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
timespec.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
u64.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
u64.h ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
unistd.c ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
unistd.in.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
unlocked-io.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
utimens.c Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
utimens.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
utimensat.c Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
verify.h Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
vla.h Update from Gnulib by running admin/merge-gnulib 2022-02-23 11:41:02 -08:00
warn-on-use.h Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
xalloc-oversized.h Update from gnulib 2022-01-04 13:17:25 -08:00