Skip to content

Commit f7a0c4a

Browse files
committed
[stdckdint.h.syn,stdbit.h.syn] Add proper indexing for header definition
Also add a check to prevent future oversights.
1 parent 2d3ac36 commit f7a0c4a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

source/numerics.tex

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

1895318953
\rSec2[stdckdint.h.syn]{Header \tcode{<stdckdint.h>} synopsis}
1895418954

18955+
\indexheader{stdckdint.h}%
1895518956
\begin{codeblock}
1895618957
#define @\libglobal{__STDC_VERSION_STDCKDINT_H__}@ 202311L
1895718958

source/utilities.tex

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

1548415484
\rSec1[stdbit.h.syn]{Header \tcode{<stdbit.h>} synopsis}
1548515485

15486+
\indexheader{stdbit.h}%
1548615487
\begin{codeblock}
1548715488
#define @\libglobal{__STDC_VERSION_STDBIT_H__}@ 202311L
1548815489

tools/check-output.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ cat std-grammarindex.ind |
4848
sed 's/^\(.*\)$/grammar non-terminal \1 has no definition/' |
4949
fail || failed=1
5050

51+
# Find header index entries missing a definition
52+
cat std-headerindex.ind |
53+
awk 'BEGIN { def=1 } /^ .item/ { if (def==0) { gsub("[{},]", "", item); print item } i=NF; while (i > 0 && $i !~ "<[a-z_.]*>") { --i; } item=$i; def=0; next } /hyperindexformat/ { def=1 }' |
54+
sed 's/^\(.*\)$/header \1 has no definition/' |
55+
fail || failed=1
56+
5157
# Find concept index entries missing a definition
5258
cat std-conceptindex.ind |
5359
sed 's/.hyperindexformat/\nhyperindexformat/;s/.hyperpage/hyperpage/' |

0 commit comments

Comments
 (0)