From a0f671d81a0f381ab349bffb981b9047a0f39079 Mon Sep 17 00:00:00 2001 From: sashan Date: Wed, 15 Oct 2025 13:43:02 +0200 Subject: [PATCH 1/2] - update chapter 14 w.r.t. switch from c90 to c99 --- policies/coding-style.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/policies/coding-style.md b/policies/coding-style.md index 89d1958..c4f95f6 100644 --- a/policies/coding-style.md +++ b/policies/coding-style.md @@ -705,10 +705,10 @@ it portable enough to meet our multi-platform support goals. ## Chapter 14: Portability -To maximise portability the version of C defined in ISO/IEC 9899:1990 -should be used. This is more commonly referred to as C90. ISO/IEC 9899:1999 -(also known as C99) is not supported on some platforms that OpenSSL is -used on and therefore should be avoided. +To maximise portability the version of C defined in ISO/IEC 9899:1999 +should be used. This is more commonly referred to as C99. The C99 should +be used on master branch. Code which is intended to be backported to +3.5 and earlier branches should use ISO/IEC 9899:1990 (a.k.a. C90). ## Chapter 15: Expressions From c6ac7f307154812fcebbc0325353d269e2a4c382 Mon Sep 17 00:00:00 2001 From: Sashan Date: Fri, 17 Oct 2025 16:06:40 +0200 Subject: [PATCH 2/2] Update policies/coding-style.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tomáš Mráz --- policies/coding-style.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/policies/coding-style.md b/policies/coding-style.md index c4f95f6..afa1cda 100644 --- a/policies/coding-style.md +++ b/policies/coding-style.md @@ -706,9 +706,10 @@ it portable enough to meet our multi-platform support goals. ## Chapter 14: Portability To maximise portability the version of C defined in ISO/IEC 9899:1999 -should be used. This is more commonly referred to as C99. The C99 should -be used on master branch. Code which is intended to be backported to -3.5 and earlier branches should use ISO/IEC 9899:1990 (a.k.a. C90). +should be used. This is more commonly referred to as C99. C99 can be +used on code targeting 3.6 and newer branches. Code which is intended +to be backported to 3.5 and earlier branches should use +ISO/IEC 9899:1990 (a.k.a. C90). ## Chapter 15: Expressions