0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

runtime(doc): allow more C99 features

closes: #17965

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Damien Lejay
2025-08-11 20:50:46 +02:00
committed by Christian Brabandt
parent dba9eb46e6
commit d1833d2827

View 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 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: In addition, the following `C99` features are explicitly allowed:
- `//` comments, as required by |style-comments|; - `//` comments, as required by |style-comments|;
- the `_Bool` type. - Mixed declarations and statements in a block;
- logical lines may contain up to 4095 characters; - 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-specific code may use any newer compiler features supported on that
platform. platform.