F.9 Overall Program Spacing
-
Variable declarations fall immediately beneath the opening curly brace, and should initialize the variable right there whenever initialization is used.
-
One line between the last variable declaration and the first line of real code.
-
The
return
statement of a function (when used as the last line of a function) should have one blank line above it and none below it.
-
Really long functions (those whose entire body is longer than 24 lines) should have a comment immediately following the closing curly brace of the function, telling you what function the closing brace terminates.
This document was generated on September 20, 2023 using texi2html 5.0.