From 46ec899026a8e7fe81410e76efdf5bdccfd22616 Mon Sep 17 00:00:00 2001 From: Damien Lejay Date: Fri, 8 Aug 2025 12:51:23 +0200 Subject: [PATCH] runtime(doc): update develop assumptions closes: #17892 Signed-off-by: Damien Lejay Signed-off-by: Christian Brabandt --- runtime/doc/develop.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt index 9b2e21b5d2..8fc3121abe 100644 --- a/runtime/doc/develop.txt +++ b/runtime/doc/develop.txt @@ -1,4 +1,4 @@ -*develop.txt* For Vim version 9.1. Last change: 2025 Jul 22 +*develop.txt* For Vim version 9.1. Last change: 2025 Aug 08 VIM REFERENCE MANUAL by Bram Moolenaar @@ -291,8 +291,8 @@ initialized from words listed in COMMON items in the affix file, so that it also works when starting a new file. This isn't ideal, because the longer Vim is running the higher the counts -become. But in practice it is a noticeable improvement over not using the word -count. +become. But in practice it is a noticeable improvement over not using the +word count. ============================================================================== 3. Assumptions *design-assumptions* @@ -338,7 +338,8 @@ Therefore, the latest ISO C standard we follow is: `C95` (ISO/IEC 9899:1990/AMD1:1995) -In addition, the following two `C99` features are explicitly allowed: +In addition, the following `C99` features are explicitly allowed: + – logical lines may contain up to 4095 characters; – `//` comments, as required by |style-comments|; – the `_Bool` type. @@ -348,11 +349,11 @@ platform. SIZE OF VARIABLES *assumptions-variables* - char 8-bit signed +We follow POSIX.1‑2001 (SUSv3) for type sizes, which in practice means: + char_u 8-bit unsigned - int 32- or 64-bit signed (16-bit possible on legacy systems) - unsigned 32- or 64-bit unsigned - long at least 32-bit signed (large enough to hold a pointer) + int ≥ 32-bit signed + unsigned ≥ 32-bit unsigned ==============================================================================