STYLE: code block indentation edits and example

This commit is contained in:
Emma Tebibyte 2024-07-15 13:38:26 -06:00
parent fbdf4f9c45
commit 9f2447ce94
Signed by: emma
GPG Key ID: 06FA419A1698C270

12
STYLE
View File

@ -21,8 +21,16 @@
return io;
3. Cases in switch statements and matches in match statements should be indented
one level
3. Each block of code should be indented once more than the keyword which
initiated the block:
switch (c) {
case 'e': mode |= EQUAL; break;
case 'g': mode |= GREATER; break;
case 'l': mode |= LESS; break;
default: return usage(s);
}
4. In C, spaces should be placed in control flow statements after the keyword
and before the opening brace: