GNU coding standards: Difference between revisions

Content deleted Content added
Bluelinking 1 books for verifiability.) #IABot (v2.1alpha3
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 7:
The GNU Coding Standards specify exactly how to format most [[C (programming language)|C programming language]] constructs. Here is a characteristic example:
 
<sourcesyntaxhighlight lang="c">
int
main (int argc, char *argv[])
Line 44:
return 0;
}
</syntaxhighlight>
</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.