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