STYLE: removes do while constraint & reword indentation rule

This commit is contained in:
Emma Tebibyte 2024-07-15 13:03:30 -06:00
parent ab003f7d4a
commit 789046f694
Signed by: emma
GPG Key ID: 06FA419A1698C270

7
STYLE
View File

@ -1,5 +1,5 @@
- Braces are mandatory for all control flow - Braces are mandatory for all control flow
- Indentation should be kept to a minimum - Nested indentation should be kept to a minimum
- Empty lines should be placed between different kinds of statements: - Empty lines should be placed between different kinds of statements:
int t; int t;
@ -49,11 +49,6 @@ use sysexits::{ EX_DATAERR, EX_IOERR, EX_UNAVAILABLE, EX_USAGE };
if (!argc < 0) { usage(program_name); } if (!argc < 0) { usage(program_name); }
- If a do while loop in C is longer than ~25 lines, place the while statement
in a comment after the opening brace:
do { /* while(count == 0 || --count > 0); */
-- --
Copyright © 2024 Emma Tebibyte <emma@tebibyte.media> Copyright © 2024 Emma Tebibyte <emma@tebibyte.media>