Skip to content

Commit

Permalink
[depr] Improved indexing of macros
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisdairM committed Dec 31, 2024
1 parent ff57a70 commit db99309
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
24 changes: 9 additions & 15 deletions source/future.tex
Original file line number Diff line number Diff line change
Expand Up @@ -221,34 +221,28 @@

\pnum
The header \libheaderref{stdalign.h} has the following macros:
\indexlibraryglobal{__alignas_is_defined}%
\begin{codeblock}
#define @\xname{alignas_is_defined}@ 1
#define @\xname{alignof_is_defined}@ 1
#define @\libmacrox{alignas_is_defined}@ 1
#define @\libmacrox{alignof_is_defined}@ 1
\end{codeblock}

\pnum
The header \libheaderref{stdbool.h} has the following macro:
\indexhdr{stdbool.h}%
\indexlibraryglobal{__bool_true_false_are_defined}%
\begin{codeblock}
#define @\xname{bool_true_false_are_defined}@ 1
#define @\libmacrox{bool_true_false_are_defined}@ 1
\end{codeblock}

\rSec1[depr.cerrno]{Deprecated error numbers}

\pnum
The header \libheaderref{cerrno} has the following additional macros:

\indexlibraryglobal{ENODATA}%
\indexlibraryglobal{ENOSR}%
\indexlibraryglobal{ENOSTR}%
\indexlibraryglobal{ETIME}%
\begin{codeblock}
#define ENODATA @\seebelow@
#define ENOSR @\seebelow@
#define ENOSTR @\seebelow@
#define ETIME @\seebelow@
#define @\libmacro{ENODATA}@ @\seebelow@
#define @\libmacro{ENOSR}@ @\seebelow@
#define @\libmacro{ENOSTR}@ @\seebelow@
#define @\libmacro{ETIME}@ @\seebelow@
\end{codeblock}

\pnum
Expand Down Expand Up @@ -862,7 +856,7 @@
template<class T>
void atomic_init(atomic<T>*, typename atomic<T>::value_type) noexcept;

#define ATOMIC_VAR_INIT(value) @\seebelow@
#define @\libmacro{ATOMIC_VAR_INIT}@(value) @\seebelow@
}
\end{codeblock}

Expand Down Expand Up @@ -911,7 +905,7 @@

\indexlibraryglobal{ATOMIC_VAR_INIT}%
\begin{itemdecl}
#define ATOMIC_VAR_INIT(value) @\seebelow@
#define @\libmacro{ATOMIC_VAR_INIT}@(value) @\seebelow@
\end{itemdecl}

\begin{itemdescr}
Expand Down
1 change: 1 addition & 0 deletions source/macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
% use in-place defining the macro in header synopses
% initially just a global entry in the library index
\newcommand{\libmacro}[1]{\indexlibraryglobal{#1}#1}
\newcommand{\libmacrox}[1]{\indexlibraryglobal{\idxxname{#1}}\xname{#1}}

% index for library headers
\newcommand{\libheaderx}[2]{\indexhdr{#1}\tcode{<#2>}}
Expand Down

0 comments on commit db99309

Please sign in to comment.