From f49285eb87dcdf8c2242cc406f71f4baf2231c7c Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 8 Jul 2023 11:45:09 +0200 Subject: [PATCH] Types - Added type alises --- docs/language/33-types.md | 7 +++++++ docs_src/language/33-types.md | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/docs/language/33-types.md b/docs/language/33-types.md index 73133a0..090a82d 100644 --- a/docs/language/33-types.md +++ b/docs/language/33-types.md @@ -23,6 +23,13 @@ attributes: | `long` | `64` | signed long (two’s complement) | | `ulong` | `64` | unsigned long | +There are also some types aliases to be aware of: + +| Type | Width | Intended interpretation | +|-----------|-----------------------------------------|--------------------------------| +| `size_t` | Value of config entry `types:max_width` | unsigned | +| `ssize_t` | Value of config entry `types:max_width` | signed byte (two’s complement) | + #### Decimal TODO: Add this diff --git a/docs_src/language/33-types.md b/docs_src/language/33-types.md index 35c489b..533370b 100644 --- a/docs_src/language/33-types.md +++ b/docs_src/language/33-types.md @@ -21,6 +21,12 @@ Primitive data type are the building blocks of which other more complex types ar | `long` | `64` | signed long (two's complement) | | `ulong` | `64` | unsigned long | +There are also some types aliases to be aware of: + +| Type | Width | Intended interpretation | +|-----------|------------------------------------------|---------------------------------| +| `size_t` | Value of config entry `types:max_width` | unsigned | +| `ssize_t` | Value of config entry `types:max_width` | signed byte (two's complement) | #### Decimal