Content deleted Content added
Replace/move Free Software portal box + various. using AWB |
m →Code formatting: Source markup |
||
Line 5:
The GNU coding standards specify exactly how to format most [[C (programming language)|C programming language]] constructs. Here is a characteristic example:
<source lang="c">
int
check:
puts ("It'
else if </source>
The consistent treatment of blocks as statements (for the purpose of indentation) is a very distinctive feature of the GNU C code formatting style; as is the mandatory space before parentheses. All code formatted in the GNU style has the property that each closing brace, bracket or parenthesis appears ''to the right'' of its corresponding opening delimiter, or in the same column.
|