Skip to content

Commit ae31481

Browse files
authored
[alg.c.library,c.math.fpclass,cmath.syn] Use \xrefc macro (#5076)
and augment the automatic checks to flag literal 'ISO C'.
1 parent 02f9bb5 commit ae31481

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

source/algorithms.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10968,5 +10968,4 @@
1096810968
Any exception thrown by \tcode{compar}\iref{res.on.exception.handling}.
1096910969
\end{itemdescr}
1097010970

10971-
\xref
10972-
ISO C 7.22.5.
10971+
\xrefc{7.22.5}

source/numerics.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9949,8 +9949,7 @@
99499949
\tcode{abs} is exempted from these rules in order to stay compatible with C.
99509950
\end{note}
99519951

9952-
\xref
9953-
ISO C 7.12
9952+
\xrefc{7.12}
99549953

99559954
\rSec2[c.math.abs]{Absolute values}
99569955

@@ -10047,8 +10046,7 @@
1004710046
corresponding names defined in the C standard library.
1004810047
Each function is overloaded for the three floating-point types.
1004910048

10050-
\xref
10051-
ISO C 7.12.3, 7.12.4
10049+
\xrefc{7.12.3, 7.12.4}
1005210050

1005310051
\rSec2[sf.cmath]{Mathematical special functions}%
1005410052

tools/check-source.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ grep -n 'ucode{[^}]*[^0-9a-f}][^}]*}' $texfiles |
8181
grep -n 'unicode{[^}]*[^0-9a-f}][^}]*}' $texfiles |
8282
fail 'use lowercase hex digits inside \\unicode' || failed=1
8383

84+
# Use \xrefc instead of "ISO C x.y.z"
85+
grep -n "^ISO C [0-9]*\." $texfiles |
86+
fail 'use \\xrefc instead' || failed=1
87+
8488
# Library element introducer followed by stuff.
8589
grep -ne '^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\).\+$' $texlibdesc |
8690
fail 'stuff after library element' || failed=1

0 commit comments

Comments
 (0)