Skip to content

Commit 3d7ce5d

Browse files
committed
[cstdint, cinttypes.syn] Reorganize <cstdint> presentation
1 parent e6e8913 commit 3d7ce5d

File tree

1 file changed

+43
-24
lines changed

1 file changed

+43
-24
lines changed

source/support.tex

+43-24
Original file line numberDiff line numberDiff line change
@@ -1537,10 +1537,10 @@
15371537

15381538
\begin{codeblock}
15391539
namespace std {
1540-
using int8_t = @\textit{signed integer type}@; // optional
1541-
using int16_t = @\textit{signed integer type}@; // optional
1542-
using int32_t = @\textit{signed integer type}@; // optional
1543-
using int64_t = @\textit{signed integer type}@; // optional
1540+
using int8_t = @\textit{signed integer type}@; // optional
1541+
using int16_t = @\textit{signed integer type}@; // optional
1542+
using int32_t = @\textit{signed integer type}@; // optional
1543+
using int64_t = @\textit{signed integer type}@; // optional
15441544

15451545
using int_fast8_t = @\textit{signed integer type}@;
15461546
using int_fast16_t = @\textit{signed integer type}@;
@@ -1553,12 +1553,12 @@
15531553
using int_least64_t = @\textit{signed integer type}@;
15541554

15551555
using intmax_t = @\textit{signed integer type}@;
1556-
using intptr_t = @\textit{signed integer type}@; // optional
1556+
using intptr_t = @\textit{signed integer type}@; // optional
15571557

1558-
using uint8_t = @\textit{unsigned integer type}@; // optional
1559-
using uint16_t = @\textit{unsigned integer type}@; // optional
1560-
using uint32_t = @\textit{unsigned integer type}@; // optional
1561-
using uint64_t = @\textit{unsigned integer type}@; // optional
1558+
using uint8_t = @\textit{unsigned integer type}@; // optional
1559+
using uint16_t = @\textit{unsigned integer type}@; // optional
1560+
using uint32_t = @\textit{unsigned integer type}@; // optional
1561+
using uint64_t = @\textit{unsigned integer type}@; // optional
15621562

15631563
using uint_fast8_t = @\textit{unsigned integer type}@;
15641564
using uint_fast16_t = @\textit{unsigned integer type}@;
@@ -1571,26 +1571,45 @@
15711571
using uint_least64_t = @\textit{unsigned integer type}@;
15721572

15731573
using uintmax_t = @\textit{unsigned integer type}@;
1574-
using uintptr_t = @\textit{unsigned integer type}@; // optional
1574+
using uintptr_t = @\textit{unsigned integer type}@; // optional
15751575
}
1576-
\end{codeblock}
15771576

1578-
\pnum
1579-
The header also defines numerous macros of the form:
1577+
#define INT[8, 16, 32, 64]_MIN @\seebelow@ // optional
1578+
#define INT[8, 16, 32, 64]_MAX @\seebelow@ // optional
1579+
#define UINT[8, 16, 32, 64]_MAX @\seebelow@ // optional
15801580

1581-
\begin{codeblock}
1582-
INT_[FAST LEAST]{8 16 32 64}_MIN
1583-
[U]INT_[FAST LEAST]{8 16 32 64}_MAX
1584-
INT{MAX PTR}_MIN
1585-
[U]INT{MAX PTR}_MAX
1586-
{PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN}
1587-
SIZE_MAX
1588-
\end{codeblock}
1581+
#define INT_LEAST[8, 16, 32, 64]_MIN @\seebelow@
1582+
#define INT_LEAST[8, 16, 32, 64]_MAX @\seebelow@
1583+
#define UINT_LEAST[8, 16, 32, 64]_MAX @\seebelow@
15891584

1590-
plus function macros of the form:
1585+
#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@
1586+
#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@
1587+
#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@
15911588

1592-
\begin{codeblock}
1593-
[U]INT{8 16 32 64 MAX}_C
1589+
#define INTPTR_MIN @\seebelow@ // optional
1590+
#define INTPTR_MAX @\seebelow@ // optional
1591+
#define UINTPTR_MAX @\seebelow@ // optional
1592+
1593+
#define INTMAX_MIN @\seebelow@
1594+
#define INTMAX_MAX @\seebelow@
1595+
#define UINTMAX_MAX @\seebelow@
1596+
1597+
#define PTRDIFF_MIN @\seebelow@
1598+
#define PTRDIFF_MAX @\seebelow@
1599+
#define SIG_ATOMIC_MIN @\seebelow@
1600+
#define SIG_ATOMIC_MAX @\seebelow@
1601+
#define SIZE_MAX @\seebelow@
1602+
1603+
#define WCHAR_MIN @\seebelow@
1604+
#define WCHAR_MAX @\seebelow@
1605+
#define WINT_MIN @\seebelow@
1606+
#define WINT_MAX @\seebelow@
1607+
1608+
#define INT[8, 16, 32, 64]_C(value) @\seebelow@ // optional
1609+
#define UINT[8, 16, 32, 64]_C(value) @\seebelow@ // optional
1610+
1611+
#define INTMAX_C(value) @\seebelow@
1612+
#define UINTMAX_C(value) @\seebelow@
15941613
\end{codeblock}
15951614

15961615
\pnum

0 commit comments

Comments
 (0)