runtime(doc): allow more C99 features
Commit:
https://github.com/vim/vim/commit/d1833d2827659d6176ac0607779fda3ebfee8ddc
Author: Damien Lejay <
dam...@lejay.be>
Date: Mon Aug 11 20:50:46 2025 +0200
runtime(doc): allow more C99 features
closes:
https://github.com/vim/vim/issues/17965
Signed-off-by: Damien Lejay <
dam...@lejay.be>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt
index e31e3573e..deb40445e 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 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.