aboutsummaryrefslogtreecommitdiff
path: root/doc/Coding_style
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-18 01:38:44 (GMT)
committerfluxgen <fluxgen>2002-01-18 01:38:44 (GMT)
commitb0d1c04c119711167fccd1b30e266269a0e2262c (patch)
tree4a83e076cc4b54b9f94530182d2538ae86a9b8a3 /doc/Coding_style
parent0c409f4e6a2f3e67c2fd6a8722585fee73076567 (diff)
downloadfluxbox_paul-b0d1c04c119711167fccd1b30e266269a0e2262c.zip
fluxbox_paul-b0d1c04c119711167fccd1b30e266269a0e2262c.tar.bz2
update
Diffstat (limited to 'doc/Coding_style')
-rw-r--r--doc/Coding_style12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/Coding_style b/doc/Coding_style
index eff9eea..a5bc90c 100644
--- a/doc/Coding_style
+++ b/doc/Coding_style
@@ -1,8 +1,6 @@
1The coding style is almost the same as i blackbox. 1The coding style is almost the same as i blackbox.
2Instead of 2 spaces there is tab. 2Instead of 2 spaces there is tab.
3It might look strange now in some places, that is because 3Use a tab size of 2 or 4 and you will be fine.
4the code hasnt been "translated" to tab 100% yet.
5Use a tab size of 2 and you will be fine.
6 4
7if-statements: 5if-statements:
8 6
@@ -29,6 +27,12 @@ It should look like this
29 stuff); 27 stuff);
30 } 28 }
31 29
30If a line need to be splited in an if-statement then it should use two
31tab for indent next row in if-statement like this:
32
33 if ( longline && longline && longling &&
34 longline && longline && longline)
35 funktion();
32 36
33The include guards: 37The include guards:
34_FILENAME_HH_ 38_FILENAME_HH_
@@ -46,7 +50,7 @@ type classname::function(...) {
46} 50}
47 51
48 52
49enums must be in uppercase letters: 53enums must be in uppercase letters and not in file scope:
50enum {WHITE, RED, BLUE}; 54enum {WHITE, RED, BLUE};
51 55
52Class data members are prefixed by m_ 56Class data members are prefixed by m_