Skip to content

[alg.c.library,c.math.fpclass,cmath.syn] Use \xrefc macro #5076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10968,5 +10968,4 @@
Any exception thrown by \tcode{compar}\iref{res.on.exception.handling}.
\end{itemdescr}

\xref
ISO C 7.22.5.
\xrefc{7.22.5}
6 changes: 2 additions & 4 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9949,8 +9949,7 @@
\tcode{abs} is exempted from these rules in order to stay compatible with C.
\end{note}

\xref
ISO C 7.12
\xrefc{7.12}

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

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

\xref
ISO C 7.12.3, 7.12.4
\xrefc{7.12.3, 7.12.4}

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

Expand Down
4 changes: 4 additions & 0 deletions tools/check-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ grep -n 'ucode{[^}]*[^0-9a-f}][^}]*}' $texfiles |
grep -n 'unicode{[^}]*[^0-9a-f}][^}]*}' $texfiles |
fail 'use lowercase hex digits inside \\unicode' || failed=1

# Use \xrefc instead of "ISO C x.y.z"
grep -n "^ISO C [0-9]*\." $texfiles |
fail 'use \\xrefc instead' || failed=1

# Library element introducer followed by stuff.
grep -ne '^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\).\+$' $texlibdesc |
fail 'stuff after library element' || failed=1
Expand Down