Skip to content

Commit 34c8e31

Browse files
committed
[text] Improved indexing of macros
1 parent bf6b778 commit 34c8e31

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

source/text.tex

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4903,13 +4903,6 @@
49034903
\indexlibraryglobal{lconv}%
49044904
\indexlibraryglobal{setlocale}%
49054905
\indexlibraryglobal{localeconv}%
4906-
\indexlibraryglobal{NULL}%
4907-
\indexlibraryglobal{LC_ALL}%
4908-
\indexlibraryglobal{LC_COLLATE}%
4909-
\indexlibraryglobal{LC_CTYPE}%
4910-
\indexlibraryglobal{LC_MONETARY}%
4911-
\indexlibraryglobal{LC_NUMERIC}%
4912-
\indexlibraryglobal{LC_TIME}%
49134906
\begin{codeblock}
49144907
namespace std {
49154908
struct lconv;
@@ -4918,13 +4911,13 @@
49184911
lconv* localeconv();
49194912
}
49204913

4921-
#define NULL @\textit{see \ref{support.types.nullptr}}@
4922-
#define LC_ALL @\seebelow@
4923-
#define LC_COLLATE @\seebelow@
4924-
#define LC_CTYPE @\seebelow@
4925-
#define LC_MONETARY @\seebelow@
4926-
#define LC_NUMERIC @\seebelow@
4927-
#define LC_TIME @\seebelow@
4914+
#define @\libmacro{NULL}@ @\textit{see \ref{support.types.nullptr}}@
4915+
#define @\libmacro{LC_ALL}@ @\seebelow@
4916+
#define @\libmacro{LC_COLLATE}@ @\seebelow@
4917+
#define @\libmacro{LC_CTYPE}@ @\seebelow@
4918+
#define @\libmacro{LC_MONETARY}@ @\seebelow@
4919+
#define @\libmacro{LC_NUMERIC}@ @\seebelow@
4920+
#define @\libmacro{LC_TIME}@ @\seebelow@
49284921
\end{codeblock}
49294922

49304923
\pnum
@@ -13065,7 +13058,6 @@
1306513058
\indexlibraryglobal{towupper}%
1306613059
\indexlibraryglobal{towctrans}%
1306713060
\indexlibraryglobal{wctrans}%
13068-
\indexlibraryglobal{WEOF}%
1306913061
\begin{codeblock}
1307013062
namespace std {
1307113063
using wint_t = @\seebelow@;
@@ -13092,7 +13084,7 @@
1309213084
wctrans_t wctrans(const char* property);
1309313085
}
1309413086

13095-
#define WEOF @\seebelow@
13087+
#define @\libmacro{WEOF}@ @\seebelow@
1309613088
\end{codeblock}
1309713089

1309813090
\pnum
@@ -13104,10 +13096,6 @@
1310413096
\rSec2[cwchar.syn]{Header \tcode{<cwchar>} synopsis}
1310513097

1310613098
\indexheader{cwchar}%
13107-
\indexlibraryglobal{NULL}%
13108-
\indexlibraryglobal{WCHAR_MAX}%
13109-
\indexlibraryglobal{WCHAR_MIN}%
13110-
\indexlibraryglobal{WEOF}%
1311113099
\indexlibraryglobal{btowc}%
1311213100
\indexlibraryglobal{fgetwc}%
1311313101
\indexlibraryglobal{fgetws}%
@@ -13247,10 +13235,10 @@
1324713235
size_t wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps);
1324813236
}
1324913237

13250-
#define NULL @\textit{see \ref{support.types.nullptr}}@ // freestanding
13251-
#define WCHAR_MAX @\seebelow@ // freestanding
13252-
#define WCHAR_MIN @\seebelow@ // freestanding
13253-
#define WEOF @\seebelow@ // freestanding
13238+
#define @\libmacro{NULL}@ @\textit{see \ref{support.types.nullptr}}@ // freestanding
13239+
#define @\libmacro{WCHAR_MAX}@ @\seebelow@ // freestanding
13240+
#define @\libmacro{WCHAR_MIN}@ @\seebelow@ // freestanding
13241+
#define @\libmacro{WEOF}@ @\seebelow@ // freestanding
1325413242
\end{codeblock}
1325513243

1325613244
\pnum
@@ -13428,7 +13416,7 @@
1342813416
\item \tcode{(size_t)(-1)}, if an encoding error occurs,
1342913417
in which case the next \tcode{n} or fewer bytes do not contribute to
1343013418
a complete and valid multibyte character (no value is stored);
13431-
the value of the macro \tcode{EILSEQ} is stored in \tcode{errno}, and
13419+
the value of the macro \tcode{EILSEQ} is stored in \tcode{\libmacro{errno}}, and
1343213420
the conversion state is unspecified.
1343313421
\end{itemize}
1343413422
\end{itemdescr}
@@ -13460,7 +13448,7 @@
1346013448
The number of bytes stored in the array object (including any shift sequences).
1346113449
If \tcode{c8} does not contribute to a sequence of \keyword{char8_t}
1346213450
corresponding to a valid multibyte character,
13463-
the value of the macro \tcode{EILSEQ} is stored in \tcode{errno},
13451+
the value of the macro \tcode{EILSEQ} is stored in \tcode{\libmacro{errno}},
1346413452
\tcode{(size_t) (-1)} is returned, and the conversion state is unspecified.
1346513453

1346613454
\pnum

0 commit comments

Comments
 (0)