document labels
This commit is contained in:
parent
4cf59e76b8
commit
4b8b02e811
1 changed files with 20 additions and 0 deletions
20
HACKING
20
HACKING
|
|
@ -136,6 +136,26 @@ Formating
|
|||
|
||||
* If a line takes more than 80 columns, split it or rethink it.
|
||||
|
||||
* Labels or case statements are left-indented by two spaces,
|
||||
without space before the `:'.
|
||||
|
||||
if (something)
|
||||
{
|
||||
top:
|
||||
bar = foo();
|
||||
switch (something_else)
|
||||
{
|
||||
case first_case:
|
||||
f();
|
||||
break;
|
||||
case second_case:
|
||||
g();
|
||||
break;
|
||||
default:
|
||||
goto top;
|
||||
}
|
||||
}
|
||||
|
||||
Naming
|
||||
======
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue