From 0d3bb4491fcbe41201f17194a12fc3ded4344d5d Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Wed, 15 May 2024 21:49:31 +0200 Subject: [PATCH] [std] Remove ISO from any mention of 'C' Fixes ISO/CS comment (C++23 proof) --- source/algorithms.tex | 2 +- source/compatibility.tex | 20 ++++++++++---------- source/expressions.tex | 2 +- source/iostreams.tex | 2 +- source/lex.tex | 5 ++--- source/lib-intro.tex | 4 ++-- source/locales.tex | 2 +- source/support.tex | 8 ++++---- 8 files changed, 22 insertions(+), 23 deletions(-) diff --git a/source/algorithms.tex b/source/algorithms.tex index 52a3c74c02..a64ccb1efa 100644 --- a/source/algorithms.tex +++ b/source/algorithms.tex @@ -12,7 +12,7 @@ non-modifying sequence operations, mutating sequence operations, sorting and related operations, -and algorithms from the ISO C library, +and algorithms from the C library, as summarized in \tref{algorithms.summary}. \begin{libsumtab}{Algorithms library summary}{algorithms.summary} diff --git a/source/compatibility.tex b/source/compatibility.tex index 2bee70ddbc..46fb8d7557 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -2469,13 +2469,13 @@ \end{codeblock} \end{example} -\rSec1[diff.iso]{\Cpp{} and ISO C} +\rSec1[diff.iso]{\Cpp{} and C} \rSec2[diff.iso.general]{General} \pnum -\indextext{summary!compatibility with ISO C}% -Subclause \ref{diff.iso} lists the differences between \Cpp{} and ISO C, +\indextext{summary!compatibility with C}% +Subclause \ref{diff.iso} lists the differences between \Cpp{} and C, in addition to those listed above, by the chapters of this document. @@ -2491,7 +2491,7 @@ semantics of \Cpp{}. \effect Change to semantics of well-defined feature. -Any ISO C programs that used any of these keywords as identifiers +Any C programs that used any of these keywords as identifiers are not valid \Cpp{} programs. \difficulty Syntactic transformation. @@ -2519,7 +2519,7 @@ \end{example} \effect Change to semantics of well-defined feature. -ISO C programs which depend on +C programs which depend on \begin{codeblock} sizeof('x') == sizeof(int) \end{codeblock} @@ -2713,7 +2713,7 @@ } \end{codeblock} -ISO C accepts this usage of pointer to \keyword{void} being assigned +C accepts this usage of pointer to \keyword{void} being assigned to a pointer to object type. \Cpp{} does not. \end{example} @@ -2734,7 +2734,7 @@ \howwide This is fairly widely used but it is good programming practice to add the cast when assigning pointer-to-void to pointer-to-object. -Some ISO C translators will give a warning +Some C translators will give a warning if the cast is not used. \diffref{expr.arith.conv} @@ -2774,7 +2774,7 @@ \rationale Feature with surprising semantics. \effect -A valid ISO C expression utilizing the decrement operator on +A valid C expression utilizing the decrement operator on a \keyword{bool} lvalue (for instance, via the C typedef in \libheaderref{stdbool.h}) is ill-formed in \Cpp{}. @@ -3242,7 +3242,7 @@ implicitly-declared copy assignment operator cannot make a copy of a volatile lvalue. \begin{example} -The following is valid in ISO C: +The following is valid in C: \begin{codeblock} struct X { int i; }; volatile struct X x1 = {0}; @@ -3377,7 +3377,7 @@ Whether \mname{STDC} is defined and if so, what its value is, are \impldef{definition and meaning of \mname{STDC}}. \rationale -\Cpp{} is not identical to ISO C\@. +\Cpp{} is not identical to C\@. Mandating that \mname{STDC} be defined would require that translators make an incorrect claim. \effect diff --git a/source/expressions.tex b/source/expressions.tex index 5115189f95..504e7db94c 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -622,7 +622,7 @@ prvalue is \tcode{T}. \begin{footnote} In \Cpp{} class and array prvalues can have cv-qualified types. -This differs from ISO C, in which non-lvalues never have +This differs from C, in which non-lvalues never have cv-qualified types. \end{footnote} diff --git a/source/iostreams.tex b/source/iostreams.tex index de2ea952e3..c1da005bb5 100644 --- a/source/iostreams.tex +++ b/source/iostreams.tex @@ -86,7 +86,7 @@ It is used to represent the number of characters transferred in an I/O operation, or the size of I/O buffers. \begin{footnote} -Most places where \tcode{streamsize} is used would use \tcode{size_t} in ISO C, +Most places where \tcode{streamsize} is used would use \tcode{size_t} in C, or \tcode{ssize_t} in POSIX. \end{footnote} \end{itemdescr} diff --git a/source/lex.tex b/source/lex.tex index 3c3be04db6..f7a1b606b4 100644 --- a/source/lex.tex +++ b/source/lex.tex @@ -1086,8 +1086,7 @@ There are several kinds of literals. \begin{footnote} The term ``literal'' generally designates, in this -document, those tokens that are called ``constants'' in -ISO C. +document, those tokens that are called ``constants'' in C. \end{footnote} \begin{bnf} @@ -1574,7 +1573,7 @@ is specified in \tref{lex.ccon.esc}. \begin{note} Using an escape sequence for a question mark -is supported for compatibility with ISO \CppXIV{} and ISO C. +is supported for compatibility with ISO \CppXIV{} and C. \end{note} \begin{floattable}{Simple escape sequences}{lex.ccon.esc} diff --git a/source/lib-intro.tex b/source/lib-intro.tex index 1422d19a57..25b12168f5 100644 --- a/source/lib-intro.tex +++ b/source/lib-intro.tex @@ -144,8 +144,8 @@ may be different from the signatures in the C standard library, and additional overloads may be declared in this document, but the behavior and the preconditions -(including any preconditions implied by the use of an -ISO C \tcode{restrict} qualifier) +(including any preconditions implied by the use of +a C \tcode{restrict} qualifier) are the same unless otherwise stated. \pnum diff --git a/source/locales.tex b/source/locales.tex index 8d7541ae7f..f4786816ce 100644 --- a/source/locales.tex +++ b/source/locales.tex @@ -16,7 +16,7 @@ The following subclauses describe components for locales themselves, the standard facets, and -facilities from the ISO C library, +facilities from the C library, as summarized in \tref{localization.summary}. \begin{libsumtab}{Localization library summary}{localization.summary} diff --git a/source/support.tex b/source/support.tex index 755e9b27c6..d4744d536b 100644 --- a/source/support.tex +++ b/source/support.tex @@ -5808,7 +5808,7 @@ In lieu of the default argument promotions specified in \IsoC{} 6.5.2.2, the definition in~\ref{expr.call} applies. \item -The restrictions that ISO C places on the second parameter to the +The restrictions that C places on the second parameter to the \indexlibraryglobal{va_start}% \tcode{va_start} macro in header \libheader{stdarg.h} are different in this document. @@ -6002,8 +6002,8 @@ the \defnx{C headers}{headers!C library} shown in \tref{c.headers}. The intended use of these headers is for interoperability only. It is possible that \Cpp{} source files need to include -one of these headers in order to be valid ISO C. -Source files that are not intended to also be valid ISO C +one of these headers in order to be valid C. +Source files that are not intended to also be valid C should not use any of the C headers. \begin{note} @@ -6014,7 +6014,7 @@ assuredly defines them in namespace \tcode{std}. \end{note} \begin{example} -The following source file is both valid \Cpp{} and valid ISO C. +The following source file is both valid \Cpp{} and valid C. Viewed as \Cpp{}, it declares a function with C language linkage; viewed as C it simply declares a function (and provides a prototype). \begin{codeblock}