]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): allow more C99 features
authorDamien Lejay <damien@lejay.be>
Mon, 11 Aug 2025 18:50:46 +0000 (20:50 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 11 Aug 2025 18:51:34 +0000 (20:51 +0200)
closes: #17965

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/develop.txt

index e31e3573ee3875a0433c162433144217644e71ac..deb40445e9ba5aaa6ecf9581c3a92620842ebb0c 100644 (file)
@@ -1,4 +1,4 @@
-*develop.txt*   For Vim version 9.1.  Last change: 2025 Aug 10
+*develop.txt*   For Vim version 9.1.  Last change: 2025 Aug 11
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -340,8 +340,14 @@ Therefore, the latest ISO C standard we follow is:
 
 In addition, the following `C99` features are explicitly allowed:
        - `//` comments, as required by |style-comments|;
-       - the `_Bool` type.
-       - logical lines may contain up to 4095 characters;
+       - Mixed declarations and statements in a block;
+       - Variadic macros `(..., __VA_ARGS__)`;
+       - Trailing comma in `enum` lists;
+       - `_Bool` type (for `bool`, `true` and `false`);
+       - `__func__` predefined identifier;
+       - `inline` functions (use `static inline` for portability);
+       - Compound literals `(type){ initializer-list }`;
+       - Logical source lines up to 4095 characters.
 
 Platform-specific code may use any newer compiler features supported on that
 platform.