]> Savannah Git Hosting - gnulib.git/commitdiff
doc: C2x → C23
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Dec 2022 08:10:23 +0000 (00:10 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Dec 2022 08:10:23 +0000 (00:10 -0800)
doc/attribute.texi
doc/posix-functions/timespec_getres.texi
lib/attribute.h
lib/limits.in.h
m4/gnulib-common.m4
tests/test-limits-h.c

index f4e18b5169c24ba69df25ca312a39960ccdcd15c..67fe1f1b7ff65b01057263edb4975a4f1ede2541 100644 (file)
@@ -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.
index c18a3635fff2d21afa3c000b188b2889884b57af..76b5f21a13942b84360be1c6d4dcd10d7c152c34 100644 (file)
@@ -2,7 +2,7 @@
 @section @code{timespec_getres}
 @findex timespec_getres
 
-ISO C2x specification:@* @url{http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2596.pdf} section 7.27.2.6
+ISO C23 specification:@* @url{http://www.open-std.org/jtc1/sc22/wg14/www/docs/n3047.pdf} section 7.29.2.7
 
 Gnulib module: timespec_getres
 
index 378d4f0a80ea3fd8d3828d3491b410e656854b3f..2dd14f40ef0addb39532cb48169ef98cef22b7a1 100644 (file)
@@ -32,7 +32,7 @@
 
 
 /* This file defines two types of attributes:
-   * C2x standard attributes.  These have macro names that do not begin with
+   * C23 standard attributes.  These have macro names that do not begin with
      'ATTRIBUTE_'.
    * Selected GCC attributes; see:
      https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
index b77bf75c5fec9b51f58eb6fa41d1db794973be8e..931ed157936927b9e2b6b403ba52b96f9ee231bc 100644 (file)
@@ -99,7 +99,7 @@
 # endif
 #endif
 
-/* Macros specified by C2x and by ISO/IEC TS 18661-1:2014.  */
+/* Macros specified by C23 and by ISO/IEC TS 18661-1:2014.  */
 
 #if (! defined ULLONG_WIDTH                                             \
      && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \
 # define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX)
 #endif
 
-/* Macros specified by C2x.  */
+/* Macros specified by C23.  */
 
 #if (! defined BOOL_WIDTH \
      && (defined _GNU_SOURCE \
index 8f5cc1617ab9f61f63462a009c71403cdf1f7eac..728a006ce88fe30471becab6b9859391d936eb87 100644 (file)
@@ -309,7 +309,7 @@ AC_DEFUN([gl_COMMON_BODY], [
      - enumeration, enumeration item,
      - typedef,
    in C++ also: class.  */
-/* In C++ and C2x, this is spelled [[__maybe_unused__]].
+/* In C++ and C23, this is spelled [[__maybe_unused__]].
    GCC's syntax is __attribute__ ((__unused__)).
    clang supports both syntaxes.  */
 #ifdef __has_c_attribute
index ddcb5d56484b06d3d477a116be1002031a467158..8432ddc72da01bb05091d4bad7012bbb290d9c75 100644 (file)
@@ -94,7 +94,7 @@ unsigned long long limits11[] = { ULLONG_MAX };
 static_assert (TYPE_MINIMUM (unsigned long long int) == 0);
 static_assert (TYPE_MAXIMUM (unsigned long long int) == ULLONG_MAX);
 
-/* Macros specified by ISO/IEC TS 18661-1:2014.  */
+/* Macros specified by C23 and by ISO/IEC TS 18661-1:2014.  */
 
 verify_width (CHAR_WIDTH, CHAR_MIN, CHAR_MAX);
 verify_width (SCHAR_WIDTH, SCHAR_MIN, SCHAR_MAX);
@@ -108,7 +108,7 @@ verify_width (ULONG_WIDTH, 0, ULONG_MAX);
 verify_width (LLONG_WIDTH, LLONG_MIN, LLONG_MAX);
 verify_width (ULLONG_WIDTH, 0, ULLONG_MAX);
 
-/* Macros specified by C2x.  */
+/* Macros specified by C23.  */
 
 int bool_attrs[] = { BOOL_MAX, BOOL_WIDTH };
 static_assert (BOOL_MAX == (((1U << (BOOL_WIDTH - 1)) - 1) * 2) + 1);