summaryrefslogtreecommitdiff
path: root/doc/attribute.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-12-24 00:10:23 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-12-24 00:10:23 -0800
commitea26437be087a9a07c2505015c0c4a7531e578f5 (patch)
treeeccad5b34a8f4341775356e65e6c41797d0e4d14 /doc/attribute.texi
parent35bd46f0c816948dc1a0430c8ba8b10a01167320 (diff)
downloadgnulib-ea26437be087a9a07c2505015c0c4a7531e578f5.tar.gz
doc: C2x → C23
Diffstat (limited to 'doc/attribute.texi')
-rw-r--r--doc/attribute.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/attribute.texi b/doc/attribute.texi
index f4e18b5169..67fe1f1b7f 100644
--- a/doc/attribute.texi
+++ b/doc/attribute.texi
@@ -30,7 +30,7 @@ extern char *crypt (char const *, char const *)
@noindent
@code{NODISCARD} expands to @code{[[nodiscard]]} if the compiler
-supports this C2x syntax, otherwise to
+supports this C23 syntax, otherwise to
@code{__attribute__ ((__warn_unused_result__))} if the compiler
is a recent-enough GCC or GCC-like compiler, otherwise to nothing.
@code{ATTRIBUTE_NOTHROW} expands to @code{__attribute__
@@ -41,11 +41,11 @@ compiler, and to nothing otherwise. Similarly for
recent-enough GCC, and to nothing otherwise.
Most of these attribute names begin with @code{ATTRIBUTE_}.
-A few do not, because they are part of C2x and their
+A few do not, because they are part of C23 and their
names are not likely to clash with other macro names.
These macros are @code{DEPRECATED}, @code{FALLTHROUGH},
@code{MAYBE_UNUSED}, and @code{NODISCARD}, which can
-be defined to @code{[[deprecated]]} etc.@: on C2x platforms.
+be defined to @code{[[deprecated]]} etc.@: on C23 platforms.
Also, these exceptional macros should be placed at the start of
function declarations, whereas the @code{ATTRIBUTE_*} macros can be
placed at the end.