Skip to content

Commit 9b73aae

Browse files
committed
[cstdint, cinttypes.syn] Reorganize <cstdint> presentation
1 parent bbca26c commit 9b73aae

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
@@ -1535,10 +1535,10 @@
15351535

15361536
\begin{codeblock}
15371537
namespace std {
1538-
using int8_t = @\textit{signed integer type}@; // optional
1539-
using int16_t = @\textit{signed integer type}@; // optional
1540-
using int32_t = @\textit{signed integer type}@; // optional
1541-
using int64_t = @\textit{signed integer type}@; // optional
1538+
using int8_t = @\textit{signed integer type}@; // optional
1539+
using int16_t = @\textit{signed integer type}@; // optional
1540+
using int32_t = @\textit{signed integer type}@; // optional
1541+
using int64_t = @\textit{signed integer type}@; // optional
15421542

15431543
using int_fast8_t = @\textit{signed integer type}@;
15441544
using int_fast16_t = @\textit{signed integer type}@;
@@ -1551,12 +1551,12 @@
15511551
using int_least64_t = @\textit{signed integer type}@;
15521552

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

1556-
using uint8_t = @\textit{unsigned integer type}@; // optional
1557-
using uint16_t = @\textit{unsigned integer type}@; // optional
1558-
using uint32_t = @\textit{unsigned integer type}@; // optional
1559-
using uint64_t = @\textit{unsigned integer type}@; // optional
1556+
using uint8_t = @\textit{unsigned integer type}@; // optional
1557+
using uint16_t = @\textit{unsigned integer type}@; // optional
1558+
using uint32_t = @\textit{unsigned integer type}@; // optional
1559+
using uint64_t = @\textit{unsigned integer type}@; // optional
15601560

15611561
using uint_fast8_t = @\textit{unsigned integer type}@;
15621562
using uint_fast16_t = @\textit{unsigned integer type}@;
@@ -1569,26 +1569,45 @@
15691569
using uint_least64_t = @\textit{unsigned integer type}@;
15701570

15711571
using uintmax_t = @\textit{unsigned integer type}@;
1572-
using uintptr_t = @\textit{unsigned integer type}@; // optional
1572+
using uintptr_t = @\textit{unsigned integer type}@; // optional
15731573
}
1574-
\end{codeblock}
15751574

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

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

1588-
plus function macros of the form:
1583+
#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@
1584+
#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@
1585+
#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@
15891586

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

15941613
\pnum

0 commit comments

Comments
 (0)