Skip to content

Commit f058070

Browse files
jensmaurertkoeppe
authored andcommitted
[std] Remove ISO from any mention of 'C'
Fixes ISO/CS comment (C++23 proof)
1 parent 868b0b2 commit f058070

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
@@ -2469,13 +2469,13 @@
24692469
\end{codeblock}
24702470
\end{example}
24712471

2472-
\rSec1[diff.iso]{\Cpp{} and ISO C}
2472+
\rSec1[diff.iso]{\Cpp{} and C}
24732473

24742474
\rSec2[diff.iso.general]{General}
24752475

24762476
\pnum
2477-
\indextext{summary!compatibility with ISO C}%
2478-
Subclause \ref{diff.iso} lists the differences between \Cpp{} and ISO C,
2477+
\indextext{summary!compatibility with C}%
2478+
Subclause \ref{diff.iso} lists the differences between \Cpp{} and C,
24792479
in addition to those listed above,
24802480
by the chapters of this document.
24812481

@@ -2491,7 +2491,7 @@
24912491
semantics of \Cpp{}.
24922492
\effect
24932493
Change to semantics of well-defined feature.
2494-
Any ISO C programs that used any of these keywords as identifiers
2494+
Any C programs that used any of these keywords as identifiers
24952495
are not valid \Cpp{} programs.
24962496
\difficulty
24972497
Syntactic transformation.
@@ -2519,7 +2519,7 @@
25192519
\end{example}
25202520
\effect
25212521
Change to semantics of well-defined feature.
2522-
ISO C programs which depend on
2522+
C programs which depend on
25232523
\begin{codeblock}
25242524
sizeof('x') == sizeof(int)
25252525
\end{codeblock}
@@ -2713,7 +2713,7 @@
27132713
}
27142714
\end{codeblock}
27152715

2716-
ISO C accepts this usage of pointer to \keyword{void} being assigned
2716+
C accepts this usage of pointer to \keyword{void} being assigned
27172717
to a pointer to object type.
27182718
\Cpp{} does not.
27192719
\end{example}
@@ -2734,7 +2734,7 @@
27342734
\howwide
27352735
This is fairly widely used but it is good
27362736
programming practice to add the cast when assigning pointer-to-void to pointer-to-object.
2737-
Some ISO C translators will give a warning
2737+
Some C translators will give a warning
27382738
if the cast is not used.
27392739

27402740
\diffref{expr.arith.conv}
@@ -2774,7 +2774,7 @@
27742774
\rationale
27752775
Feature with surprising semantics.
27762776
\effect
2777-
A valid ISO C expression utilizing the decrement operator on
2777+
A valid C expression utilizing the decrement operator on
27782778
a \keyword{bool} lvalue
27792779
(for instance, via the C typedef in \libheaderref{stdbool.h})
27802780
is ill-formed in \Cpp{}.
@@ -3242,7 +3242,7 @@
32423242
implicitly-declared copy assignment operator
32433243
cannot make a copy of a volatile lvalue.
32443244
\begin{example}
3245-
The following is valid in ISO C:
3245+
The following is valid in C:
32463246
\begin{codeblock}
32473247
struct X { int i; };
32483248
volatile struct X x1 = {0};
@@ -3377,7 +3377,7 @@
33773377
Whether \mname{STDC} is defined and if so, what its value is, are
33783378
\impldef{definition and meaning of \mname{STDC}}.
33793379
\rationale
3380-
\Cpp{} is not identical to ISO C\@.
3380+
\Cpp{} is not identical to C\@.
33813381
Mandating that \mname{STDC}
33823382
be defined would require that translators make an incorrect claim.
33833383
\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
@@ -1086,8 +1086,7 @@
10861086
There are several kinds of literals.
10871087
\begin{footnote}
10881088
The term ``literal'' generally designates, in this
1089-
document, those tokens that are called ``constants'' in
1090-
ISO C.
1089+
document, those tokens that are called ``constants'' in C.
10911090
\end{footnote}
10921091

10931092
\begin{bnf}
@@ -1574,7 +1573,7 @@
15741573
is specified in \tref{lex.ccon.esc}.
15751574
\begin{note}
15761575
Using an escape sequence for a question mark
1577-
is supported for compatibility with ISO \CppXIV{} and ISO C.
1576+
is supported for compatibility with ISO \CppXIV{} and C.
15781577
\end{note}
15791578

15801579
\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
@@ -5810,7 +5810,7 @@
58105810
In lieu of the default argument promotions specified in \IsoC{} 6.5.2.2,
58115811
the definition in~\ref{expr.call} applies.
58125812
\item
5813-
The restrictions that ISO C places on the second parameter to the
5813+
The restrictions that C places on the second parameter to the
58145814
\indexlibraryglobal{va_start}%
58155815
\tcode{va_start} macro in header \libheader{stdarg.h}
58165816
are different in this document.
@@ -6004,8 +6004,8 @@
60046004
the \defnx{C headers}{headers!C library} shown in \tref{c.headers}.
60056005
The intended use of these headers is for interoperability only.
60066006
It is possible that \Cpp{} source files need to include
6007-
one of these headers in order to be valid ISO C.
6008-
Source files that are not intended to also be valid ISO C
6007+
one of these headers in order to be valid C.
6008+
Source files that are not intended to also be valid C
60096009
should not use any of the C headers.
60106010

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

0 commit comments

Comments
 (0)