Skip to content

[std] Remove ISO from any mention of 'C' #7013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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.

Expand All @@ -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.
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand All @@ -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}
Expand Down Expand Up @@ -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{}.
Expand Down Expand Up @@ -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};
Expand Down Expand Up @@ -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
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 @@ -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}
Expand Down Expand Up @@ -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}
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 @@ -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.
Expand Down Expand Up @@ -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}
Expand All @@ -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}
Expand Down
Loading