From 54948dd3b4349e768ae1b54cd0416c2803b25ad1 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 4 Aug 2024 00:59:40 +0200 Subject: [PATCH] Remove CFloat and CDouble --- src/content/docs/references/docs/types.md | 29 +++++++++++------------ 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/content/docs/references/docs/types.md b/src/content/docs/references/docs/types.md index b131b760..dedeab16 100644 --- a/src/content/docs/references/docs/types.md +++ b/src/content/docs/references/docs/types.md @@ -157,21 +157,20 @@ It is possible to type a floating point by adding a suffix: For C compatibility the following types are also defined in std::core::cinterop -| Name | c type | -| ------------ | ------------------:| -| CChar | char | -| CShort | short int | -| CUShort | unsigned short int | -| CInt | int | -| CUInt | unsigned int | -| CLong | long int | -| CULong | unsigned long int | -| CLongLong | long long | -| CULongLong | unsigned long long | -| CFloat | float | -| CDouble | double | -| CLongDouble | long double | - +| Name | c type | +|-------------| ------------------:| +| CChar | char | +| CShort | short int | +| CUShort | unsigned short int | +| CInt | int | +| CUInt | unsigned int | +| CLong | long int | +| CULong | unsigned long int | +| CLongLong | long long | +| CULongLong | unsigned long long | +| CLongDouble | long double | + +`float` and `double` will always match their C counterparts. Note that signed C char and unsigned char will correspond to `ichar` and `char`. `CChar` is only available to match the default signedness of `char` on the platform.