summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-08-09 23:20:49 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-08-10 00:22:09 -0700
commit2eb92c362ecfb2dae9c9cb37cb9246df6989181c (patch)
tree298053737c12bfc1144936111b7763b53ae51be7 /ChangeLog
parent9331caeffae1b7b5f49b65c98c2ff9cc8f3691fd (diff)
downloadgnulib-2eb92c362ecfb2dae9c9cb37cb9246df6989181c.tar.gz
stdckdint-h: new module
This supports draft C23 <stdckdint.h>. * doc/posix-headers/stdckdint.texi: * lib/stdckdint.in.h, modules/stdckdint: * modules/stdckdint-tests, tests/test-stdckdint.c: New files. * MODULES.html.sh, doc/gnulib.texi: Update for new module. * lib/intprops-internal.h: Include <stdckdint.h> if C23 and its macros would help and our substitute has not already started to be included. (_GL_INT_ADD_WRAPV, _GL_INT_SUBTRACT_WRAPV) (_GL_INT_MULTIPLY_WRAPV): Use ckd_add, ckd_sub, ckd_mul if they are defined and would help. * lib/intprops-internal.h, lib/intprops.h: Improve comments. The C23 restrictions on stdckdint macros already mostly applied to intprops.h, so these are clarifications, not further restrictions. * tests/test-intprops.c: If TEST_STDCKDINT is defined, include <stdckdint.h> instead of "intprops.h", and test it instead. (VERIFY) [TEST_STDCKDINT]: Ignore the arg in this case. (main) [TEST_STDCKDINT]: Skip tests irrelevant to stdckdint.h.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog22
1 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e977f75b65..20c25c902a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,27 @@
2022-08-09 Paul Eggert <eggert@cs.ucla.edu>
+ stdckdint: new module
+ This supports draft C23 <stdckdint.h>.
+ * doc/posix-headers/stdckdint.texi:
+ * lib/stdckdint.in.h, modules/stdckdint:
+ * modules/stdckdint-tests, tests/test-stdckdint.c:
+ New files.
+ * MODULES.html.sh, doc/gnulib.texi: Update for new module.
+ * lib/intprops-internal.h: Include <stdckdint.h> if C23 and
+ its macros would help and our substitute has not already
+ started to be included.
+ (_GL_INT_ADD_WRAPV, _GL_INT_SUBTRACT_WRAPV)
+ (_GL_INT_MULTIPLY_WRAPV): Use ckd_add, ckd_sub, ckd_mul
+ if they are defined and would help.
+ * lib/intprops-internal.h, lib/intprops.h: Improve comments.
+ The C23 restrictions on stdckdint macros already mostly applied to
+ intprops.h, so these are clarifications, not further restrictions.
+ * tests/test-intprops.c: If TEST_STDCKDINT is defined,
+ include <stdckdint.h> instead of "intprops.h", and test
+ it instead.
+ (VERIFY) [TEST_STDCKDINT]: Ignore the arg in this case.
+ (main) [TEST_STDCKDINT]: Skip tests irrelevant to stdckdint.h.
+
intprops: refactor intprops.h into two
* lib/intprops.h: Include new file intprops-internal.h.
(_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT, _GL_INT_MINIMUM)