Skip to content

Commit f672ecf

Browse files
committed
[std] Replace "C Standard" with "ISO/IEC 9899:2018".
Fixes ISO/CS 035 (C++23 DIS).
1 parent 4c76193 commit f672ecf

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

source/basic.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4728,9 +4728,8 @@
47284728
\defn{value}, which is one discrete element of an
47294729
\impldef{values of a trivially copyable type} set of values.
47304730
\begin{footnote}
4731-
The
4732-
intent is that the memory model of \Cpp{} is compatible
4733-
with that of ISO/IEC 9899 Programming Language C.
4731+
The intent is that the memory model of \Cpp{} is compatible
4732+
with that of the C programming language.
47344733
\end{footnote}
47354734

47364735
\pnum
@@ -5276,7 +5275,7 @@
52765275
should be chosen to increase compatibility and interoperability
52775276
with the interchange types
52785277
\tcode{_Float16}, \tcode{_Float32}, \tcode{_Float64}, and \tcode{_Float128}
5279-
defined in ISO/IEC TS 18661-3 and with future versions of the C standard.
5278+
defined in ISO/IEC TS 18661-3 and with future versions of \IsoCUndated{}.
52805279

52815280
\rSec2[basic.compound]{Compound types}
52825281

source/intro.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212

1313
\pnum
1414
\Cpp{} is a general purpose programming language based on the C
15-
programming language as described in ISO/IEC 9899:2018
16-
\doccite{Programming languages --- C} (hereinafter referred to as the
17-
\defnx{C standard}{C!standard}). \Cpp{} provides many facilities
15+
programming language as described in \IsoC{}.
16+
\Cpp{} provides many facilities
1817
beyond those provided by C, including additional data types,
1918
classes, templates, exceptions, namespaces, operator
2019
overloading, function name overloading, references, free store
@@ -37,7 +36,7 @@
3736
\item ISO/IEC 2382, \doccite{Information technology --- Vocabulary}
3837
\item ISO 8601:2004, \doccite{Data elements and interchange formats ---
3938
Information interchange --- Representation of dates and times}
40-
\item ISO/IEC 9899:2018, \doccite{Information technology --- Programming languages --- C}
39+
\item \IsoC{}, \doccite{Information technology --- Programming languages --- C}
4140
\item ISO/IEC/IEEE 9945:2009, \doccite{Information Technology --- Portable
4241
Operating System Interface (POSIX
4342
\begin{footnote}

source/lib-intro.tex

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
if it raises a floating-point exception other than \tcode{FE_INEXACT}.
151151
The semantics of a call to a C standard library function
152152
evaluated as a core constant expression
153-
are those specified in Annex F of the C standard
153+
are those specified in \IsoC{}, Annex F
154154
\begin{footnote}
155-
See also ISO/IEC 9899:2018 section 7.6.
155+
See also \IsoC{}, 7.6.
156156
\end{footnote}
157157
to the extent applicable to the floating-point types\iref{basic.fundamental}
158158
that are parameter types of the called function.
@@ -1281,7 +1281,7 @@
12811281
\end{footnote}
12821282

12831283
\pnum
1284-
Annex K of the C standard describes a large number of functions,
1284+
\IsoC{}, Annex K describes a large number of functions,
12851285
with associated types and macros,
12861286
which ``promote safer, more secure programming''
12871287
than many of the traditional C library functions.
@@ -1302,7 +1302,7 @@
13021302
that may be declared in some header.
13031303
These names are also subject to the restrictions of~\ref{macro.names}.
13041304

1305-
\begin{multicolfloattable}{C standard Annex K names}{c.annex.k.names}
1305+
\begin{multicolfloattable}{Names from \IsoC{}, Annex K}{c.annex.k.names}
13061306
{llll}
13071307
\tcode{abort_handler_s} \\
13081308
\tcode{asctime_s} \\
@@ -1599,8 +1599,7 @@
15991599
\begin{footnote}
16001600
The only reliable way to declare an object or
16011601
function signature from the C standard library is by including the header that
1602-
declares it, notwithstanding the latitude granted in 7.1.4 of the C
1603-
Standard.
1602+
declares it, notwithstanding the latitude granted in \IsoC{}, 7.1.4.
16041603
\end{footnote}
16051604

16061605
\pnum
@@ -3715,8 +3714,7 @@
37153714
Functions from the C standard library shall not throw exceptions%
37163715
\indextext{specifications!C standard library exception}%
37173716
\begin{footnote}
3718-
That is, the C
3719-
library functions can all be treated as if they
3717+
That is, the C standard library functions can all be treated as if they
37203718
are marked \keyword{noexcept}.
37213719
This allows implementations to make performance optimizations
37223720
based on the absence of exceptions at runtime.

source/macros.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@
277277
\newcommand{\CppXX}{\Cpp{} 2020}
278278
\newcommand{\CppXXIII}{\Cpp{} 2023}
279279
\newcommand{\CppXXVI}{\Cpp{} 2026}
280+
\newcommand{\IsoCUndated}{ISO/IEC 9899}
281+
\newcommand{\IsoC}{\IsoCUndated{}:2018}
280282
\newcommand{\opt}[1]{#1\ensuremath{_\mathit{\color{black}opt}}}
281283
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
282284

@@ -363,7 +365,7 @@
363365

364366
%% Cross-reference
365367
\newcommand{\xref}{\textsc{See also:}\space}
366-
\newcommand{\xrefc}[1]{\xref{} ISO C #1}
368+
\newcommand{\xrefc}[1]{\xref{} \IsoC{}, #1}
367369

368370
%% Inline comma-separated parenthesized references
369371
\ExplSyntaxOn

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6164,6 +6164,6 @@
61646164
The header \libheader{stdlib.h}
61656165
assuredly provides the same declarations and definitions within
61666166
the global namespace,
6167-
much as in the C Standard. It may also provide these names within
6167+
much as in \IsoCUndated{}. It may also provide these names within
61686168
the namespace \tcode{std}.
61696169
\end{example}

0 commit comments

Comments
 (0)