diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-28 01:06:10 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-28 01:09:01 -0700 |
commit | f6fb2b9e1f94917601201f5d43c15e92e99b2a2f (patch) | |
tree | ca8ea61ece3c0f2aa56a7aeffcc52c41b9ce4dfd /test/src/emacs-module-resources | |
parent | a9b29ee4a0ffa4878d67eaf518dbeed098844b9e (diff) | |
download | emacs-f6fb2b9e1f94917601201f5d43c15e92e99b2a2f.tar.gz emacs-f6fb2b9e1f94917601201f5d43c15e92e99b2a2f.tar.bz2 emacs-f6fb2b9e1f94917601201f5d43c15e92e99b2a2f.zip |
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.
Diffstat (limited to 'test/src/emacs-module-resources')
-rw-r--r-- | test/src/emacs-module-resources/mod-test.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/src/emacs-module-resources/mod-test.c b/test/src/emacs-module-resources/mod-test.c index 187af821c22..b47a0b7a39b 100644 --- a/test/src/emacs-module-resources/mod-test.c +++ b/test/src/emacs-module-resources/mod-test.c @@ -24,7 +24,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ #include <errno.h> #include <limits.h> -#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> |