Skip to content

Commit 5c10b40

Browse files
committed
[cstdint, cinttypes.syn] Reorganize <cstdint> presentation
1 parent 7f7e757 commit 5c10b40

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
@@ -1347,10 +1347,10 @@
13471347

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

13551355
using int_fast8_t = @\textit{signed integer type}@;
13561356
using int_fast16_t = @\textit{signed integer type}@;
@@ -1363,12 +1363,12 @@
13631363
using int_least64_t = @\textit{signed integer type}@;
13641364

13651365
using intmax_t = @\textit{signed integer type}@;
1366-
using intptr_t = @\textit{signed integer type}@; // optional
1366+
using intptr_t = @\textit{signed integer type}@; // optional
13671367

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

13731373
using uint_fast8_t = @\textit{unsigned integer type}@;
13741374
using uint_fast16_t = @\textit{unsigned integer type}@;
@@ -1381,26 +1381,45 @@
13811381
using uint_least64_t = @\textit{unsigned integer type}@;
13821382

13831383
using uintmax_t = @\textit{unsigned integer type}@;
1384-
using uintptr_t = @\textit{unsigned integer type}@; // optional
1384+
using uintptr_t = @\textit{unsigned integer type}@; // optional
13851385
}
1386-
\end{codeblock}
13871386

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

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

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

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

14061425
\pnum

0 commit comments

Comments
 (0)