import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
3729fc68eb
commit
423ba10303
13396 changed files with 269468 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
When to place spaces?
|
||||
After and before comments:
|
||||
/* text */
|
||||
o
|
||||
Where to put curly braces?
|
||||
functions: at the beginning of the line:
|
||||
|
||||
void func(char *what, int where)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Before and after '=', '==', '!='', '>=', '<='
|
||||
|
||||
After ')', ','
|
||||
No space before ), so if '))', do not put a space after the first ')'.
|
||||
|
||||
Header:
|
||||
Put a header into each file, containing:
|
||||
- date of file being put into existence (year is enough)
|
||||
- Name and E-mail of Author
|
||||
- Description of the function
|
||||
|
||||
Includes:
|
||||
System includes first,
|
||||
own headers later
|
||||
|
||||
Indent:
|
||||
Three spaces. No tabs.
|
||||
|
||||
Indent variable names, so the names begin all at the same position. Use three spaces
|
||||
to place them.
|
||||
Loading…
Add table
Add a link
Reference in a new issue