Skip to content

Commit

Permalink
[std] Remove ISO from any mention of 'C'
Browse files Browse the repository at this point in the history
Fixes ISO/CS comment (C++23 proof)
  • Loading branch information
jensmaurer committed May 15, 2024
1 parent 9cd749b commit 1039d28
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
20 changes: 10 additions & 10 deletions source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2407,13 +2407,13 @@
}
\end{codeblock}

\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.

Expand All @@ -2429,7 +2429,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.
Expand All @@ -2455,7 +2455,7 @@
function rather than the first.
\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}
Expand Down Expand Up @@ -2644,7 +2644,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.
\rationale
Expand All @@ -2664,7 +2664,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}
Expand Down Expand Up @@ -2702,7 +2702,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{}.
Expand Down Expand Up @@ -3154,7 +3154,7 @@
The implicitly-declared copy constructor and
implicitly-declared copy assignment operator
cannot make a copy of a volatile lvalue.
For example, the following is valid in ISO C:
For example, the following is valid in C:
\begin{codeblock}
struct X { int i; };
volatile struct X x1 = {0};
Expand Down Expand Up @@ -3285,7 +3285,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
Expand Down
2 changes: 1 addition & 1 deletion source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 2 additions & 3 deletions source/lex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1080,8 +1080,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}
Expand Down Expand Up @@ -1568,7 +1567,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}
Expand Down
4 changes: 2 additions & 2 deletions source/lib-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/locales.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 4 additions & 4 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5805,7 +5805,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.
Expand Down Expand Up @@ -5999,8 +5999,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}
Expand All @@ -6011,7 +6011,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}
Expand Down

0 comments on commit 1039d28

Please sign in to comment.