From 2aa9f8cd1d289d26fc9261b6521436460c2cc42d Mon Sep 17 00:00:00 2001 From: Patrick Vogler Date: Wed, 21 Jun 2023 11:39:07 +0000 Subject: [PATCH] Update 'Coding Style' --- Coding-Style.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Coding-Style.md b/Coding-Style.md index 5d1e611..36b0fd4 100644 --- a/Coding-Style.md +++ b/Coding-Style.md @@ -36,7 +36,20 @@ Above all, the following rule from the GNOME developer documentation should alwa >Most importantly, do not make your first contribution to a project a change in the coding style to suit your taste. That is incredibly disrespectful. ## Formatting +Keep the length of source code lines to 100 characters or less to ensure maximum readability on most modern monitors with a reasonable font size. Longer lines of code are more difficult to read and understand. Too many indentations should be interpreted as an indication that code restructuring is required. ### Indentation + + +```c + while ((c = *str++)) + { + if ((c >= 97) && (c <= 122)) + { + c = c - 32; + } + hash = (hash * 33) ^ c; + } +``` ### Braces ### Functions ### Derived Types