Skip to content

Commit 3691ad4

Browse files
committed
[cstdint, cinttypes.syn] Reorganize <cstdint> presentation
1 parent d1f308f commit 3691ad4

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
@@ -1356,10 +1356,10 @@
13561356

13571357
\begin{codeblock}
13581358
namespace std {
1359-
using int8_t = @\textit{signed integer type}@; // optional
1360-
using int16_t = @\textit{signed integer type}@; // optional
1361-
using int32_t = @\textit{signed integer type}@; // optional
1362-
using int64_t = @\textit{signed integer type}@; // optional
1359+
using int8_t = @\textit{signed integer type}@; // optional
1360+
using int16_t = @\textit{signed integer type}@; // optional
1361+
using int32_t = @\textit{signed integer type}@; // optional
1362+
using int64_t = @\textit{signed integer type}@; // optional
13631363

13641364
using int_fast8_t = @\textit{signed integer type}@;
13651365
using int_fast16_t = @\textit{signed integer type}@;
@@ -1372,12 +1372,12 @@
13721372
using int_least64_t = @\textit{signed integer type}@;
13731373

13741374
using intmax_t = @\textit{signed integer type}@;
1375-
using intptr_t = @\textit{signed integer type}@; // optional
1375+
using intptr_t = @\textit{signed integer type}@; // optional
13761376

1377-
using uint8_t = @\textit{unsigned integer type}@; // optional
1378-
using uint16_t = @\textit{unsigned integer type}@; // optional
1379-
using uint32_t = @\textit{unsigned integer type}@; // optional
1380-
using uint64_t = @\textit{unsigned integer type}@; // optional
1377+
using uint8_t = @\textit{unsigned integer type}@; // optional
1378+
using uint16_t = @\textit{unsigned integer type}@; // optional
1379+
using uint32_t = @\textit{unsigned integer type}@; // optional
1380+
using uint64_t = @\textit{unsigned integer type}@; // optional
13811381

13821382
using uint_fast8_t = @\textit{unsigned integer type}@;
13831383
using uint_fast16_t = @\textit{unsigned integer type}@;
@@ -1390,26 +1390,45 @@
13901390
using uint_least64_t = @\textit{unsigned integer type}@;
13911391

13921392
using uintmax_t = @\textit{unsigned integer type}@;
1393-
using uintptr_t = @\textit{unsigned integer type}@; // optional
1393+
using uintptr_t = @\textit{unsigned integer type}@; // optional
13941394
}
1395-
\end{codeblock}
13961395

1397-
\pnum
1398-
The header also defines numerous macros of the form:
1396+
#define INT[8, 16, 32, 64]_MIN @\seebelow@ // optional
1397+
#define INT[8, 16, 32, 64]_MAX @\seebelow@ // optional
1398+
#define UINT[8, 16, 32, 64]_MAX @\seebelow@ // optional
13991399

1400-
\begin{codeblock}
1401-
INT_[FAST LEAST]{8 16 32 64}_MIN
1402-
[U]INT_[FAST LEAST]{8 16 32 64}_MAX
1403-
INT{MAX PTR}_MIN
1404-
[U]INT{MAX PTR}_MAX
1405-
{PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN}
1406-
SIZE_MAX
1407-
\end{codeblock}
1400+
#define INT_LEAST[8, 16, 32, 64]_MIN @\seebelow@
1401+
#define INT_LEAST[8, 16, 32, 64]_MAX @\seebelow@
1402+
#define UINT_LEAST[8, 16, 32, 64]_MAX @\seebelow@
14081403

1409-
plus function macros of the form:
1404+
#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@
1405+
#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@
1406+
#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@
14101407

1411-
\begin{codeblock}
1412-
[U]INT{8 16 32 64 MAX}_C
1408+
#define INTPTR_MIN @\seebelow@ // optional
1409+
#define INTPTR_MAX @\seebelow@ // optional
1410+
#define UINTPTR_MAX @\seebelow@ // optional
1411+
1412+
#define INTMAX_MIN @\seebelow@
1413+
#define INTMAX_MAX @\seebelow@
1414+
#define UINTMAX_MAX @\seebelow@
1415+
1416+
#define PTRDIFF_MIN @\seebelow@
1417+
#define PTRDIFF_MAX @\seebelow@
1418+
#define SIG_ATOMIC_MIN @\seebelow@
1419+
#define SIG_ATOMIC_MAX @\seebelow@
1420+
#define SIZE_MAX @\seebelow@
1421+
1422+
#define WCHAR_MIN @\seebelow@
1423+
#define WCHAR_MAX @\seebelow@
1424+
#define WINT_MIN @\seebelow@
1425+
#define WINT_MAX @\seebelow@
1426+
1427+
#define INT[8, 16, 32, 64]_C(value) @\seebelow@ // optional
1428+
#define UINT[8, 16, 32, 64]_C(value) @\seebelow@ // optional
1429+
1430+
#define INTMAX_C(value) @\seebelow@
1431+
#define UINTMAX_C(value) @\seebelow@
14131432
\end{codeblock}
14141433

14151434
\pnum

0 commit comments

Comments
 (0)