From 1d35a9e8709a278b068837e238ad70dc6327e7ca Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 18 Sep 2025 13:22:47 +0200 Subject: [PATCH] Add unsupported features in NOTES-C99.md: complex.h and variable length array Resolves: https://github.com/openssl/openssl/issues/28598 Reviewed-by: Neil Horman Reviewed-by: Shane Lontis Reviewed-by: Tim Hudson Reviewed-by: Tom Cosgrove (Merged from https://github.com/openssl/openssl/pull/28602) (cherry picked from commit 4a0d4a5c3a5970591b2c9ac645125c1ec448d8e9) --- NOTES-C99.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/NOTES-C99.md b/NOTES-C99.md index ad3be43b619..47b153a88da 100644 --- a/NOTES-C99.md +++ b/NOTES-C99.md @@ -20,3 +20,16 @@ The list here is going to be updated by features we either The list of C-99 features we don't support in OpenSSL project follows: - do not use `//` for comments, stick to `/* ... */` + + - do not use ``. MSVC doesn't quite implement it to standard. + + - do not use variable length arrays, i.e. arrays where the size is + determined by another variable. MSVC doesn't implement it at all. + For clarity, this is an example of such an array: + + ``` C + int fun(size_t n) + { + char s[n]; /* variable size array */ + ... + ``` -- 2.47.3