-
Notifications
You must be signed in to change notification settings - Fork 0
/
CODINGSTYLE.txt
38 lines (24 loc) · 1 KB
/
CODINGSTYLE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@file CODINGSTYLE.txt @brief µ window manager coding style
Copyright (c) 2011 by Lutz Sammer. All Rights Reserved.
Contributor(s):
License: AGPLv3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
$Id$
Tabulators are 8 characters, but indentations are 4 characters.
Tabulators are always unexpanded.
The maximal line length is 79 characters.
Write {} always, even for single statements:
if (expr) {
stmt;
}
Use // for end of line comments.
See .indent.pro for indentation rules.
Enable ".git/hooks/pre-commit", which checks for trailing whitespaces.
Run "make indent" before sending patches or commit.