]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add unsupported features in NOTES-C99.md: complex.h and variable length array
authorRichard Levitte <levitte@openssl.org>
Thu, 18 Sep 2025 11:22:47 +0000 (13:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Sep 2025 08:39:03 +0000 (10:39 +0200)
Resolves: https://github.com/openssl/openssl/issues/28598

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/28602)

(cherry picked from commit 4a0d4a5c3a5970591b2c9ac645125c1ec448d8e9)

NOTES-C99.md

index ad3be43b6194433f64c79667686441d21a7bb33a..47b153a88da23bf9a6dbe397b12a475174468ebc 100644 (file)
@@ -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 `<complex.h>`. 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 */
+         ...
+     ```