Skip to content

Commit d1833d2

Browse files
dlejaychrisbra
authored andcommitted
runtime(doc): allow more C99 features
closes: #17965 Signed-off-by: Damien Lejay <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent dba9eb4 commit d1833d2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

runtime/doc/develop.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*develop.txt* For Vim version 9.1. Last change: 2025 Aug 10
1+
*develop.txt* For Vim version 9.1. Last change: 2025 Aug 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -340,8 +340,14 @@ Therefore, the latest ISO C standard we follow is:
340340

341341
In addition, the following `C99` features are explicitly allowed:
342342
- `//` comments, as required by |style-comments|;
343-
- the `_Bool` type.
344-
- logical lines may contain up to 4095 characters;
343+
- Mixed declarations and statements in a block;
344+
- Variadic macros `(..., __VA_ARGS__)`;
345+
- Trailing comma in `enum` lists;
346+
- `_Bool` type (for `bool`, `true` and `false`);
347+
- `__func__` predefined identifier;
348+
- `inline` functions (use `static inline` for portability);
349+
- Compound literals `(type){ initializer-list }`;
350+
- Logical source lines up to 4095 characters.
345351

346352
Platform-specific code may use any newer compiler features supported on that
347353
platform.

0 commit comments

Comments
 (0)