Skip to content

Commit bb63282

Browse files
jensmaurertkoeppe
authored andcommitted
[lib] Use \xrefc instead of \xref ISO C
1 parent 22ad3d7 commit bb63282

File tree

9 files changed

+42
-41
lines changed

9 files changed

+42
-41
lines changed

source/diagnostics.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
except that a macro named \tcode{static_assert}
558558
is not defined.
559559

560-
\xref ISO C 7.2
560+
\xrefc{7.2}
561561

562562
\rSec2[assertions.assert]{The \tcode{assert} macro}
563563

@@ -752,7 +752,7 @@
752752
\pnum
753753
The meaning of the macros in this header is defined by the POSIX standard.
754754

755-
\xref ISO C 7.5
755+
\xrefc{7.5}
756756

757757
\rSec1[syserr]{System error support}
758758

source/future.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
The header \tcode{<cstdalign>} and the header \tcode{<stdalign.h>} shall not
8888
define a macro named \tcode{alignas}.
8989

90-
\xref ISO C 7.15
90+
\xrefc{7.15}
9191

9292
\rSec2[depr.cstdbool.syn]{Header \tcode{<cstdbool>} synopsis}
9393

@@ -104,7 +104,7 @@
104104
The header \tcode{<cstdbool>} and the header \tcode{<stdbool.h>} shall not
105105
define macros named \tcode{bool}, \tcode{true}, or \tcode{false}.
106106

107-
\xref ISO C 7.18
107+
\xrefc{7.18}
108108

109109
\rSec2[depr.ctgmath.syn]{Header \tcode{<ctgmath>} synopsis}
110110

source/iostreams.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
\pnum
450450
Concurrent access to a synchronized\iref{ios.members.static} standard iostream object's formatted and unformatted input\iref{istream} and output\iref{ostream} functions or a standard C stream by multiple threads shall not result in a data race\iref{intro.multithread}. \begin{note} Users must still synchronize concurrent use of these objects and streams by multiple threads if they wish to avoid interleaved characters. \end{note}
451451

452-
\xref ISO C 7.21.2
452+
\xrefc{7.21.2}
453453

454454
\rSec2[narrow.stream.objects]{Narrow stream objects}
455455

@@ -16065,7 +16065,7 @@
1606516065
introduce a data race\iref{res.on.data.races} with other calls to \tcode{tmpnam} with
1606616066
an argument that is a null pointer value.
1606716067

16068-
\xref ISO C 7.21
16068+
\xrefc{7.21}
1606916069

1607016070
\rSec2[cinttypes.syn]{Header \tcode{<cinttypes>} synopsis}
1607116071

@@ -16230,4 +16230,4 @@
1623016230
\tcode{imaxdiv_t imaxdiv(intmax_t, intmax_t)}, respectively.
1623116231
\end{itemize}
1623216232

16233-
\xref ISO C 7.8
16233+
\xrefc{7.8}

source/locales.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5078,7 +5078,7 @@
50785078
race\iref{res.on.data.races} with other calls to \tcode{setlocale} or with calls to
50795079
the functions listed in Table~\ref{tab:setlocale.data.races}.
50805080

5081-
\xref ISO C 7.11
5081+
\xrefc{7.11}
50825082

50835083
\begin{floattable}
50845084
{Potential \tcode{setlocale} data races}

source/macros.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@
253253

254254
%% Cross reference
255255
\newcommand{\xref}{\textsc{See also:}\space}
256+
\newcommand{\xrefc}[1]{\xref{} ISO C #1}
256257

257258
%% Inline parenthesized reference
258259
\newcommand{\iref}[1]{\nolinebreak[3] (\ref{#1})}

source/numerics.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
A separate floating-point environment shall be maintained for each thread. Each function
243243
accesses the environment corresponding to its calling thread.
244244

245-
\xref ISO C 7.6
245+
\xrefc{7.6}
246246

247247
\rSec1[complex.numbers]{Complex numbers}
248248

@@ -992,7 +992,7 @@
992992
\pnum
993993
\remarks
994994
Behaves the same as the C function \tcode{cproj}.
995-
\xref ISO C 7.3.9.5
995+
\xrefc{7.3.9.5}
996996
\end{itemdescr}
997997

998998
\indexlibrary{\idxcode{polar}!\idxcode{complex}}%
@@ -1029,7 +1029,7 @@
10291029
\pnum
10301030
\remarks
10311031
Behaves the same as the C function \tcode{cacos}.
1032-
\xref ISO C 7.3.5.1
1032+
\xrefc{7.3.5.1}
10331033
\end{itemdescr}
10341034

10351035
\indexlibrary{\idxcode{asin}!\idxcode{complex}}%
@@ -1045,7 +1045,7 @@
10451045
\pnum
10461046
\remarks
10471047
Behaves the same as the C function \tcode{casin}.
1048-
\xref ISO C 7.3.5.2
1048+
\xrefc{7.3.5.2}
10491049
\end{itemdescr}
10501050

10511051
\indexlibrary{\idxcode{atan}!\idxcode{complex}}%
@@ -1061,7 +1061,7 @@
10611061
\pnum
10621062
\remarks
10631063
Behaves the same as the C function \tcode{catan}.
1064-
\xref ISO C 7.3.5.3
1064+
\xrefc{7.3.5.3}
10651065
\end{itemdescr}
10661066

10671067
\indexlibrary{\idxcode{acosh}!\idxcode{complex}}%
@@ -1077,7 +1077,7 @@
10771077
\pnum
10781078
\remarks
10791079
Behaves the same as the C function \tcode{cacosh}.
1080-
\xref ISO C 7.3.6.1
1080+
\xrefc{7.3.6.1}
10811081
\end{itemdescr}
10821082

10831083
\indexlibrary{\idxcode{asinh}!\idxcode{complex}}%
@@ -1093,7 +1093,7 @@
10931093
\pnum
10941094
\remarks
10951095
Behaves the same as the C function \tcode{casinh}.
1096-
\xref ISO C 7.3.6.2
1096+
\xrefc{7.3.6.2}
10971097
\end{itemdescr}
10981098

10991099
\indexlibrary{\idxcode{atanh}!\idxcode{complex}}%
@@ -1109,7 +1109,7 @@
11091109
\pnum
11101110
\remarks
11111111
Behaves the same as the C function \tcode{catanh}.
1112-
\xref ISO C 7.3.6.3
1112+
\xrefc{7.3.6.3}
11131113
\end{itemdescr}
11141114

11151115
\indexlibrary{\idxcode{cos}!\idxcode{complex}}%
@@ -6417,7 +6417,7 @@
64176417
\end{note}
64186418
\end{itemdescr}
64196419

6420-
\xref ISO C 7.22.2
6420+
\xrefc{7.22.2}
64216421

64226422
\indextext{random number generation|)}
64236423

@@ -10524,7 +10524,7 @@
1052410524
\end{note}
1052510525
\end{itemdescr}
1052610526

10527-
\xref ISO C 7.12.7.2, 7.22.6.1
10527+
\xrefc{7.12.7.2, 7.22.6.1}
1052810528

1052910529
\rSec2[c.math.hypot3]{Three-dimensional hypotenuse}
1053010530

source/strings.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5957,7 +5957,7 @@
59575957
The contents and meaning of the header \tcode{<cctype>}
59585958
are the same as the C standard library header \tcode{<ctype.h>}.
59595959

5960-
\xref ISO C 7.4
5960+
\xrefc{7.4}
59615961

59625962
\rSec2[cwctype.syn]{Header \tcode{<cwctype>} synopsis}
59635963

@@ -6018,7 +6018,7 @@
60186018
The contents and meaning of the header \tcode{<cwctype>}
60196019
are the same as the C standard library header \tcode{<wctype.h>}.
60206020

6021-
\xref ISO C 7.30
6021+
\xrefc{7.30}
60226022

60236023
\rSec2[cstring.syn]{Header \tcode{<cstring>} synopsis}
60246024

@@ -6104,7 +6104,7 @@
61046104
but they have the same behavior as in the C standard library\iref{library.c}.
61056105
\end{note}
61066106

6107-
\xref ISO C 7.24
6107+
\xrefc{7.24}
61086108

61096109
\rSec2[cwchar.syn]{Header \tcode{<cwchar>} synopsis}
61106110

@@ -6272,7 +6272,7 @@
62726272
but they have the same behavior as in the C standard library\iref{library.c}.
62736273
\end{note}
62746274

6275-
\xref ISO C 7.29
6275+
\xrefc{7.29}
62766276

62776277
\rSec2[cuchar.syn]{Header \tcode{<cuchar>} synopsis}
62786278

@@ -6302,7 +6302,7 @@
63026302
\tcode{<uchar.h>}, except that it does not declare types \tcode{char16_t} nor
63036303
\tcode{char32_t}.
63046304

6305-
\xref ISO C 7.28
6305+
\xrefc{7.28}
63066306

63076307
\rSec2[c.mb.wcs]{Multibyte / wide string and character conversion functions}
63086308

@@ -6332,7 +6332,7 @@
63326332
These functions have the semantics specified in the C standard library.
63336333
\end{itemdescr}
63346334

6335-
\xref ISO C 7.22.7.1, 7.22.8, 7.29.6.2.1
6335+
\xrefc{7.22.7.1, 7.22.8, 7.29.6.2.1}
63366336

63376337
\indexlibrary{\idxcode{mbtowc}}%
63386338
\indexlibrary{\idxcode{wctomb}}%
@@ -6353,7 +6353,7 @@
63536353
with other calls to the same function.
63546354
\end{itemdescr}
63556355

6356-
\xref ISO C 7.22.7
6356+
\xrefc{7.22.7}
63576357

63586358
\indexlibrary{\idxcode{mbrlen}}%
63596359
\indexlibrary{\idxcode{mbrstowcs}}%
@@ -6382,4 +6382,4 @@
63826382
with an \tcode{mbstate_t*} argument that is a null pointer value.
63836383
\end{itemdescr}
63846384

6385-
\xref ISO C 7.29.6.3
6385+
\xrefc{7.29.6.3}

source/support.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
\ref{support.types.nullptr} and
9696
\ref{support.types.layout}.
9797

98-
\xref ISO C 7.19
98+
\xrefc{7.19}
9999

100100
\rSec2[cstdlib.syn]{Header \tcode{<cstdlib>} synopsis}
101101

@@ -257,7 +257,7 @@
257257
but they have the same behavior as in the C standard library\iref{library.c}.
258258
\end{note}
259259

260-
\xref ISO C 7.22
260+
\xrefc{7.22}
261261

262262
\rSec2[support.types.nullptr]{Null pointers}
263263

@@ -284,7 +284,7 @@
284284
but not
285285
\tcode{(void*)0}.}
286286

287-
\xref ISO C 7.19
287+
\xrefc{7.19}
288288

289289
\rSec2[support.types.layout]{Sizes, alignments, and offsets}
290290

@@ -336,7 +336,7 @@
336336
is at least as great as that of every scalar type, and whose alignment
337337
requirement is supported in every context\iref{basic.align}.
338338

339-
\xref ISO C 7.19
339+
\xrefc{7.19}
340340

341341
\rSec2[support.types.byteops]{\tcode{byte} type operations}
342342

@@ -1418,7 +1418,7 @@
14181418
required to match the types to which the macros refer.
14191419
\end{note}
14201420

1421-
\xref ISO C 5.2.4.2.1
1421+
\xrefc{5.2.4.2.1}
14221422

14231423
\rSec2[cfloat.syn]{Header \tcode{<cfloat>} synopsis}
14241424

@@ -1509,7 +1509,7 @@
15091509
The header \tcode{<cfloat>} defines all macros the same as
15101510
the C standard library header \tcode{<float.h>}.
15111511

1512-
\xref ISO C 5.2.4.2.2
1512+
\xrefc{5.2.4.2.2}
15131513

15141514
\rSec1[cstdint]{Integer types}
15151515

@@ -1606,7 +1606,7 @@
16061606
The header defines all types and macros the same as
16071607
the C standard library header \tcode{<stdint.h>}.
16081608

1609-
\xref ISO C 7.20
1609+
\xrefc{7.20}
16101610

16111611
\rSec1[support.start.term]{Start and termination}
16121612

@@ -1808,7 +1808,7 @@
18081808
when the functions registered with \tcode{at_quick_exit} are.
18091809
\end{itemdescr}
18101810

1811-
\xref ISO C 7.22.4
1811+
\xrefc{7.22.4}
18121812

18131813
\rSec1[support.dynamic]{Dynamic memory management}
18141814

@@ -4748,7 +4748,7 @@
47484748
type that results when passing an argument for which there is no
47494749
parameter, the behavior is undefined.
47504750

4751-
\xref ISO C 7.16.1.1
4751+
\xrefc{7.16.1.1}
47524752

47534753
\rSec2[csetjmp.syn]{Header \tcode{<csetjmp>} synopsis}
47544754

@@ -4780,7 +4780,7 @@
47804780
by \tcode{catch} and \tcode{throw} would invoke any non-trivial destructors for any automatic
47814781
objects.
47824782

4783-
\xref ISO C 7.13
4783+
\xrefc{7.13}
47844784

47854785
\rSec2[csignal.syn]{Header \tcode{<csignal>} synopsis}
47864786

@@ -4896,4 +4896,4 @@
48964896
with the first argument equal to the signal number
48974897
corresponding to the signal that caused the invocation of the handler.
48984898

4899-
\xref ISO C 7.14
4899+
\xrefc{7.14}

source/utilities.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7923,7 +7923,7 @@
79237923
\tcode{::operator delete()}\indexlibrary{\idxcode{delete}!\idxcode{operator}}.
79247924
\end{itemdescr}
79257925

7926-
\xref ISO C 7.22.3
7926+
\xrefc{7.22.3}
79277927

79287928
\rSec1[smartptr]{Smart pointers}
79297929

@@ -28690,7 +28690,7 @@
2869028690
\tcode{localtime} are not required to avoid data
2869128691
races\iref{res.on.data.races}.
2869228692

28693-
\xref ISO C 7.27
28693+
\xrefc{7.27}
2869428694

2869528695
\rSec1[type.index]{Class \tcode{type_index}}
2869628696

@@ -29228,7 +29228,7 @@
2922829228
\throws Nothing.
2922929229
\end{itemdescr}
2923029230

29231-
\xref ISO C 7.21.6.1
29231+
\xrefc{7.21.6.1}
2923229232

2923329233
\rSec2[charconv.from.chars]{Primitive numeric input conversion}
2923429234

@@ -29346,4 +29346,4 @@
2934629346
\throws Nothing.
2934729347
\end{itemdescr}
2934829348

29349-
\xref ISO C 7.22.1.3, 7.22.1.4
29349+
\xrefc{7.22.1.3, 7.22.1.4}

0 commit comments

Comments
 (0)