Skip to content

Commit 1039d28

Browse files
committed
[std] Remove ISO from any mention of 'C'
Fixes ISO/CS comment (C++23 proof)
1 parent 9cd749b commit 1039d28

File tree

8 files changed

+22
-23
lines changed

8 files changed

+22
-23
lines changed

source/algorithms.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
non-modifying sequence operations,
1313
mutating sequence operations,
1414
sorting and related operations,
15-
and algorithms from the ISO C library,
15+
and algorithms from the C library,
1616
as summarized in \tref{algorithms.summary}.
1717

1818
\begin{libsumtab}{Algorithms library summary}{algorithms.summary}

source/compatibility.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,13 +2407,13 @@
24072407
}
24082408
\end{codeblock}
24092409

2410-
\rSec1[diff.iso]{\Cpp{} and ISO C}
2410+
\rSec1[diff.iso]{\Cpp{} and C}
24112411

24122412
\rSec2[diff.iso.general]{General}
24132413

24142414
\pnum
2415-
\indextext{summary!compatibility with ISO C}%
2416-
Subclause \ref{diff.iso} lists the differences between \Cpp{} and ISO C,
2415+
\indextext{summary!compatibility with C}%
2416+
Subclause \ref{diff.iso} lists the differences between \Cpp{} and C,
24172417
in addition to those listed above,
24182418
by the chapters of this document.
24192419

@@ -2429,7 +2429,7 @@
24292429
semantics of \Cpp{}.
24302430
\effect
24312431
Change to semantics of well-defined feature.
2432-
Any ISO C programs that used any of these keywords as identifiers
2432+
Any C programs that used any of these keywords as identifiers
24332433
are not valid \Cpp{} programs.
24342434
\difficulty
24352435
Syntactic transformation.
@@ -2455,7 +2455,7 @@
24552455
function rather than the first.
24562456
\effect
24572457
Change to semantics of well-defined feature.
2458-
ISO C programs which depend on
2458+
C programs which depend on
24592459
\begin{codeblock}
24602460
sizeof('x') == sizeof(int)
24612461
\end{codeblock}
@@ -2644,7 +2644,7 @@
26442644
}
26452645
\end{codeblock}
26462646

2647-
ISO C accepts this usage of pointer to \keyword{void} being assigned
2647+
C accepts this usage of pointer to \keyword{void} being assigned
26482648
to a pointer to object type.
26492649
\Cpp{} does not.
26502650
\rationale
@@ -2664,7 +2664,7 @@
26642664
\howwide
26652665
This is fairly widely used but it is good
26662666
programming practice to add the cast when assigning pointer-to-void to pointer-to-object.
2667-
Some ISO C translators will give a warning
2667+
Some C translators will give a warning
26682668
if the cast is not used.
26692669

26702670
\diffref{expr.arith.conv}
@@ -2702,7 +2702,7 @@
27022702
\rationale
27032703
Feature with surprising semantics.
27042704
\effect
2705-
A valid ISO C expression utilizing the decrement operator on
2705+
A valid C expression utilizing the decrement operator on
27062706
a \keyword{bool} lvalue
27072707
(for instance, via the C typedef in \libheaderref{stdbool.h})
27082708
is ill-formed in \Cpp{}.
@@ -3154,7 +3154,7 @@
31543154
The implicitly-declared copy constructor and
31553155
implicitly-declared copy assignment operator
31563156
cannot make a copy of a volatile lvalue.
3157-
For example, the following is valid in ISO C:
3157+
For example, the following is valid in C:
31583158
\begin{codeblock}
31593159
struct X { int i; };
31603160
volatile struct X x1 = {0};
@@ -3285,7 +3285,7 @@
32853285
Whether \mname{STDC} is defined and if so, what its value is, are
32863286
\impldef{definition and meaning of \mname{STDC}}.
32873287
\rationale
3288-
\Cpp{} is not identical to ISO C\@.
3288+
\Cpp{} is not identical to C\@.
32893289
Mandating that \mname{STDC}
32903290
be defined would require that translators make an incorrect claim.
32913291
\effect

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
prvalue is \tcode{T}.
623623
\begin{footnote}
624624
In \Cpp{} class and array prvalues can have cv-qualified types.
625-
This differs from ISO C, in which non-lvalues never have
625+
This differs from C, in which non-lvalues never have
626626
cv-qualified types.
627627
\end{footnote}
628628

source/iostreams.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
It is used to represent the number of characters transferred in an I/O
8787
operation, or the size of I/O buffers.
8888
\begin{footnote}
89-
Most places where \tcode{streamsize} is used would use \tcode{size_t} in ISO C,
89+
Most places where \tcode{streamsize} is used would use \tcode{size_t} in C,
9090
or \tcode{ssize_t} in POSIX.
9191
\end{footnote}
9292
\end{itemdescr}

source/lex.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,8 +1080,7 @@
10801080
There are several kinds of literals.
10811081
\begin{footnote}
10821082
The term ``literal'' generally designates, in this
1083-
document, those tokens that are called ``constants'' in
1084-
ISO C.
1083+
document, those tokens that are called ``constants'' in C.
10851084
\end{footnote}
10861085

10871086
\begin{bnf}
@@ -1568,7 +1567,7 @@
15681567
is specified in \tref{lex.ccon.esc}.
15691568
\begin{note}
15701569
Using an escape sequence for a question mark
1571-
is supported for compatibility with ISO \CppXIV{} and ISO C.
1570+
is supported for compatibility with ISO \CppXIV{} and C.
15721571
\end{note}
15731572

15741573
\begin{floattable}{Simple escape sequences}{lex.ccon.esc}

source/lib-intro.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@
144144
may be different from the signatures in the C standard library,
145145
and additional overloads may be declared in this document,
146146
but the behavior and the preconditions
147-
(including any preconditions implied by the use of an
148-
ISO C \tcode{restrict} qualifier)
147+
(including any preconditions implied by the use of
148+
a C \tcode{restrict} qualifier)
149149
are the same unless otherwise stated.
150150

151151
\pnum

source/locales.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
The following subclauses describe components for
1717
locales themselves,
1818
the standard facets, and
19-
facilities from the ISO C library,
19+
facilities from the C library,
2020
as summarized in \tref{localization.summary}.
2121

2222
\begin{libsumtab}{Localization library summary}{localization.summary}

source/support.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5805,7 +5805,7 @@
58055805
In lieu of the default argument promotions specified in \IsoC{} 6.5.2.2,
58065806
the definition in~\ref{expr.call} applies.
58075807
\item
5808-
The restrictions that ISO C places on the second parameter to the
5808+
The restrictions that C places on the second parameter to the
58095809
\indexlibraryglobal{va_start}%
58105810
\tcode{va_start} macro in header \libheader{stdarg.h}
58115811
are different in this document.
@@ -5999,8 +5999,8 @@
59995999
the \defnx{C headers}{headers!C library} shown in \tref{c.headers}.
60006000
The intended use of these headers is for interoperability only.
60016001
It is possible that \Cpp{} source files need to include
6002-
one of these headers in order to be valid ISO C.
6003-
Source files that are not intended to also be valid ISO C
6002+
one of these headers in order to be valid C.
6003+
Source files that are not intended to also be valid C
60046004
should not use any of the C headers.
60056005

60066006
\begin{note}
@@ -6011,7 +6011,7 @@
60116011
assuredly defines them in namespace \tcode{std}.
60126012
\end{note}
60136013
\begin{example}
6014-
The following source file is both valid \Cpp{} and valid ISO C.
6014+
The following source file is both valid \Cpp{} and valid C.
60156015
Viewed as \Cpp{}, it declares a function with C language linkage;
60166016
viewed as C it simply declares a function (and provides a prototype).
60176017
\begin{codeblock}

0 commit comments

Comments
 (0)