import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -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.