Content deleted Content added
No edit summary |
No edit summary |
||
Line 11:
}
The basic level of indentation puts the curly brackets on one line, indenting them two spaces in. The statement(s) after the brackets are indented four spaces in.
== Variable Declaration ==▼
Variables are declared each on one line, or two of the same sort on one line. The former is prefered in the GNU coding style.▼
Examples:▼
int foo;▼
int bar;▼
OR▼
int foo, bar;▼
The method:▼
int foo,▼
bar;▼
is not permitted under the guidlines.▼
For a function, the curly brackets should be on the first line, on seperate lines. The body of the function should be indented two spaces in.
Line 53 ⟶ 33:
}
while (foo == bar)
▲== Variable Declaration ==
▲Variables are declared each on one line, or two of the same sort on one line. The former is prefered in the GNU coding style.
▲Examples:
▲ int foo;
▲ int bar;
▲OR
▲ int foo, bar;
▲The method:
▲ int foo,
▲ bar;
▲is not permitted under the guidlines.
== Comments ==
|