Skip to content

Commit 9155f47

Browse files
committed
[cstdint, cinttypes.syn] Reorganize <cstdint> presentation
1 parent fabca20 commit 9155f47

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
@@ -1346,10 +1346,10 @@
13461346

13471347
\begin{codeblock}
13481348
namespace std {
1349-
using int8_t = @\textit{signed integer type}@; // optional
1350-
using int16_t = @\textit{signed integer type}@; // optional
1351-
using int32_t = @\textit{signed integer type}@; // optional
1352-
using int64_t = @\textit{signed integer type}@; // optional
1349+
using int8_t = @\textit{signed integer type}@; // optional
1350+
using int16_t = @\textit{signed integer type}@; // optional
1351+
using int32_t = @\textit{signed integer type}@; // optional
1352+
using int64_t = @\textit{signed integer type}@; // optional
13531353

13541354
using int_fast8_t = @\textit{signed integer type}@;
13551355
using int_fast16_t = @\textit{signed integer type}@;
@@ -1362,12 +1362,12 @@
13621362
using int_least64_t = @\textit{signed integer type}@;
13631363

13641364
using intmax_t = @\textit{signed integer type}@;
1365-
using intptr_t = @\textit{signed integer type}@; // optional
1365+
using intptr_t = @\textit{signed integer type}@; // optional
13661366

1367-
using uint8_t = @\textit{unsigned integer type}@; // optional
1368-
using uint16_t = @\textit{unsigned integer type}@; // optional
1369-
using uint32_t = @\textit{unsigned integer type}@; // optional
1370-
using uint64_t = @\textit{unsigned integer type}@; // optional
1367+
using uint8_t = @\textit{unsigned integer type}@; // optional
1368+
using uint16_t = @\textit{unsigned integer type}@; // optional
1369+
using uint32_t = @\textit{unsigned integer type}@; // optional
1370+
using uint64_t = @\textit{unsigned integer type}@; // optional
13711371

13721372
using uint_fast8_t = @\textit{unsigned integer type}@;
13731373
using uint_fast16_t = @\textit{unsigned integer type}@;
@@ -1380,26 +1380,45 @@
13801380
using uint_least64_t = @\textit{unsigned integer type}@;
13811381

13821382
using uintmax_t = @\textit{unsigned integer type}@;
1383-
using uintptr_t = @\textit{unsigned integer type}@; // optional
1383+
using uintptr_t = @\textit{unsigned integer type}@; // optional
13841384
}
1385-
\end{codeblock}
13861385

1387-
\pnum
1388-
The header also defines numerous macros of the form:
1386+
#define INT[8, 16, 32, 64]_MIN @\seebelow@ // optional
1387+
#define INT[8, 16, 32, 64]_MAX @\seebelow@ // optional
1388+
#define UINT[8, 16, 32, 64]_MAX @\seebelow@ // optional
13891389

1390-
\begin{codeblock}
1391-
INT_[FAST LEAST]{8 16 32 64}_MIN
1392-
[U]INT_[FAST LEAST]{8 16 32 64}_MAX
1393-
INT{MAX PTR}_MIN
1394-
[U]INT{MAX PTR}_MAX
1395-
{PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN}
1396-
SIZE_MAX
1397-
\end{codeblock}
1390+
#define INT_LEAST[8, 16, 32, 64]_MIN @\seebelow@
1391+
#define INT_LEAST[8, 16, 32, 64]_MAX @\seebelow@
1392+
#define UINT_LEAST[8, 16, 32, 64]_MAX @\seebelow@
13981393

1399-
plus function macros of the form:
1394+
#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@
1395+
#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@
1396+
#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@
14001397

1401-
\begin{codeblock}
1402-
[U]INT{8 16 32 64 MAX}_C
1398+
#define INTPTR_MIN @\seebelow@ // optional
1399+
#define INTPTR_MAX @\seebelow@ // optional
1400+
#define UINTPTR_MAX @\seebelow@ // optional
1401+
1402+
#define INTMAX_MIN @\seebelow@
1403+
#define INTMAX_MAX @\seebelow@
1404+
#define UINTMAX_MAX @\seebelow@
1405+
1406+
#define PTRDIFF_MIN @\seebelow@
1407+
#define PTRDIFF_MAX @\seebelow@
1408+
#define SIG_ATOMIC_MIN @\seebelow@
1409+
#define SIG_ATOMIC_MAX @\seebelow@
1410+
#define SIZE_MAX @\seebelow@
1411+
1412+
#define WCHAR_MIN @\seebelow@
1413+
#define WCHAR_MAX @\seebelow@
1414+
#define WINT_MIN @\seebelow@
1415+
#define WINT_MAX @\seebelow@
1416+
1417+
#define INT[8, 16, 32, 64]_C(value) @\seebelow@ // optional
1418+
#define UINT[8, 16, 32, 64]_C(value) @\seebelow@ // optional
1419+
1420+
#define INTMAX_C(value) @\seebelow@
1421+
#define UINTMAX_C(value) @\seebelow@
14031422
\end{codeblock}
14041423

14051424
\pnum

0 commit comments

Comments
 (0)