From 59792035e70ec63522f3c5e7f370bf920c486802 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Tue, 22 Jul 2025 18:56:05 +0800 Subject: [PATCH] Fix sections numbers in existing `\xrefc` and `\IsoC` [intro.abstract] Update to refer to C23 7.23.3 [basic.fundamental] Update to refer to C23 5.3.5.3.2 ... due to new sections added after WG14 N3220 [support.types] Un-update to refer to C23 7.21 In WG14 N3550, the section number of components has become 7.22 due to addition of . [climits.syn] Update to refer to C23 5.3.5.3.2 ... due to new sections added after WG14 N3220 [cfloat.syn] Update to refer to C23 5.3.5.3.3 ... due to new sections added after WG14 N3220 [support.start.term] Update to refer to C23 7.24.5 ... due to new sections added after WG14 N3220 [cstdarg.syn] Update to refer to C23 6.5.3.3 ... due to new sections added after WG14 N3220 [c.malloc] Update to refer to C23 7.24.4 [alg.c.library] Update to refer to C23 7.24.6 ... due to new sections added after WG14 N3220 [charconv.to.chars] Update to refer to C23 7.23.6.2 [charconv.from.chars] Update to refer to C23 7.24.2.6, 7.24.2.8 [c.mb.wcs] Update to refer to C23 7.24.8.2, 7.24.9, 7.31.6.3.1, 7.24.8 ... and C23 7.30.2, 7.31.6.4, 7.31.6.5 due to new sections added after WG14 N3220 [c.math.rand] Update to refer to C23 7.24.3 [c.math.abs] Update to refer to C23 7.12.8.3, 7.24.7.1 ... partially due to new sections added after WG14 N3220 [c.math.fpclass] Update to refer to C23 7.12.4, 7.12.18 ... partially due to new sections added after WG14 N3220, along with typo fix [iostream.objects.overview] Update to refer to C23 7.23.2 [print.fun] Update to refer to C23 7.23.2 [cstdio.syn] Update to refer to C23 7.23.3 [depr.c.macros] Update to refer to C23 5.3.5.3.3, 7.33.6 ... due to new sections added after WG14 N3220 --- source/algorithms.tex | 2 +- source/basic.tex | 2 +- source/future.tex | 2 +- source/intro.tex | 2 +- source/iostreams.tex | 6 +++--- source/memory.tex | 2 +- source/numerics.tex | 6 +++--- source/support.tex | 14 +++++++------- source/text.tex | 10 +++++----- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/source/algorithms.tex b/source/algorithms.tex index 43aac8ffc9..1c49a92577 100644 --- a/source/algorithms.tex +++ b/source/algorithms.tex @@ -14486,4 +14486,4 @@ Any exception thrown by \tcode{compar}\iref{res.on.exception.handling}. \end{itemdescr} -\xrefc{7.24.5} +\xrefc{7.24.6} diff --git a/source/basic.tex b/source/basic.tex index 8ad496d3d6..3f0cc1c9fb 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -5396,7 +5396,7 @@ \end{note} \begin{note} The signed and unsigned integer types satisfy -the constraints given in \IsoC{} 5.2.4.2.1. +the constraints given in \IsoC{} 5.3.5.3.2. \end{note} Except as specified above, the width of a signed or unsigned integer type is diff --git a/source/future.tex b/source/future.tex index f94b2c3320..5022a94d67 100644 --- a/source/future.tex +++ b/source/future.tex @@ -230,7 +230,7 @@ The header defines these macros the same as the C standard library header \libheader{float.h}. -\xrefc{5.2.4.2.2, 7.33.5} +\xrefc{5.3.5.3.3, 7.33.6} \pnum In addition to being available via inclusion of the \libheader{cfloat} header, diff --git a/source/intro.tex b/source/intro.tex index e4014b9674..880da163dd 100644 --- a/source/intro.tex +++ b/source/intro.tex @@ -1019,7 +1019,7 @@ Accesses through volatile glvalues are evaluated strictly according to the rules of the abstract machine. \item -Data is delivered to the host environment to be written into files (\xrefc{7.21.3}). +Data is delivered to the host environment to be written into files (\xrefc{7.23.3}). \begin{note} Delivering such data diff --git a/source/iostreams.tex b/source/iostreams.tex index 7381d9c351..e5c8be2bc0 100644 --- a/source/iostreams.tex +++ b/source/iostreams.tex @@ -532,7 +532,7 @@ can result in interleaved characters. \end{note} -\xrefc{7.21.2} +\xrefc{7.23.2} \rSec2[narrow.stream.objects]{Narrow stream objects} @@ -7876,7 +7876,7 @@ \end{itemize} Unconditionally unlocks \tcode{stream} on function exit. -\xrefc{7.21.2}. +\xrefc{7.23.2}. \begin{note} On Windows the native Unicode API is \tcode{WriteConsoleW} and @@ -18990,7 +18990,7 @@ The return from each function call that delivers data to the host environment -to be written to a file (\xrefc{7.21.3}) +to be written to a file (\xrefc{7.23.3}) is an observable checkpoint\iref{intro.abstract}. \pnum diff --git a/source/memory.tex b/source/memory.tex index 4b3d168212..425e06add4 100644 --- a/source/memory.tex +++ b/source/memory.tex @@ -2204,7 +2204,7 @@ \tcode{::operator delete()}\indexlibrarymember{delete}{operator}. \end{itemdescr} -\xrefc{7.22.3} +\xrefc{7.24.4} \rSec1[smartptr]{Smart pointers} diff --git a/source/numerics.tex b/source/numerics.tex index 7b1f65deae..0578d73893 100644 --- a/source/numerics.tex +++ b/source/numerics.tex @@ -6966,7 +6966,7 @@ \end{note} \end{itemdescr} -\xrefc{7.22.2} +\xrefc{7.24.3} \indextext{random number generation|)} @@ -9895,7 +9895,7 @@ The absolute value of \tcode{x}. \end{itemdescr} -\xrefc{7.12.7.2, 7.22.6.1} +\xrefc{7.12.8.3, 7.24.7.1} \rSec2[c.math.hypot3]{Three-dimensional hypotenuse} @@ -9949,7 +9949,7 @@ The classification / comparison functions behave the same as the C macros with the corresponding names defined in the C standard library. -\xrefc{7.12.3, 7.12.4} +\xrefc{7.12.4, 7.12.18} \rSec2[sf.cmath]{Mathematical special functions}% diff --git a/source/support.tex b/source/support.tex index 19e19d6f11..3082562ee3 100644 --- a/source/support.tex +++ b/source/support.tex @@ -97,7 +97,7 @@ \ref{support.types.nullptr} and \ref{support.types.layout}. -\xrefc{7.22} +\xrefc{7.21} \rSec2[cstdlib.syn]{Header \tcode{} synopsis} @@ -297,7 +297,7 @@ \tcode{(void*)0}. \end{footnote} -\xrefc{7.22} +\xrefc{7.21} \rSec2[support.types.layout]{Sizes, alignments, and offsets} @@ -352,7 +352,7 @@ requirement is supported in every context\iref{basic.align}. \tcode{std::is_trivially_default_constructible_v} is \tcode{true}. -\xrefc{7.22} +\xrefc{7.21} \rSec2[support.types.byteops]{\tcode{byte} type operations} @@ -1828,7 +1828,7 @@ type of \tcode{T}\iref{conv.prom}. \end{note} -\xrefc{5.2.4.2.1} +\xrefc{5.3.5.3.2} \rSec2[cfloat.syn]{Header \tcode{} synopsis} @@ -1884,7 +1884,7 @@ The header \libheader{cfloat} defines all macros the same as the C standard library header \libheader{float.h}. -\xrefc{5.2.4.2.2} +\xrefc{5.3.5.3.3} \rSec1[support.arith.types]{Arithmetic types} @@ -2328,7 +2328,7 @@ when the functions registered with \tcode{at_quick_exit} are. \end{itemdescr} -\xrefc{7.24.4} +\xrefc{7.24.5} \rSec1[support.dynamic]{Dynamic memory management} @@ -6410,7 +6410,7 @@ standard library header \libheader{stdarg.h}, with the following changes: \begin{itemize} \item -In lieu of the default argument promotions specified in \IsoC{} 6.5.2.2, +In lieu of the default argument promotions specified in \IsoC{} 6.5.3.3, the definition in~\ref{expr.call} applies. \item The preprocessing tokens diff --git a/source/text.tex b/source/text.tex index dd5246e542..1af118d0f8 100644 --- a/source/text.tex +++ b/source/text.tex @@ -233,7 +233,7 @@ Nothing. \end{itemdescr} -\xrefc{7.21.6.1} +\xrefc{7.23.6.2} \rSec2[charconv.from.chars]{Primitive numeric input conversion} @@ -348,7 +348,7 @@ Nothing. \end{itemdescr} -\xrefc{7.22.1.3, 7.22.1.4} +\xrefc{7.24.2.6, 7.24.2.8} \rSec1[localization]{Localization library} @@ -13317,7 +13317,7 @@ These functions have the semantics specified in the C standard library. \end{itemdescr} -\xrefc{7.22.7.1, 7.22.8, 7.29.6.2.1} +\xrefc{7.24.8.2, 7.24.9, 7.31.6.3.1} \indexlibraryglobal{mbtowc}% \indexlibraryglobal{wctomb}% @@ -13338,7 +13338,7 @@ with other calls to the same function. \end{itemdescr} -\xrefc{7.22.7} +\xrefc{7.24.8} \begin{itemdecl} size_t @\libglobal{mbrlen}@(const char* s, size_t n, mbstate_t* ps); @@ -13368,4 +13368,4 @@ with an \tcode{mbstate_t*} argument that is a null pointer value. \end{itemdescr} -\xrefc{7.30.1, 7.31.6.3, 7.31.6.4} +\xrefc{7.30.2, 7.31.6.4, 7.31.6.5}