diff options
author | fluxgen <fluxgen> | 2002-01-06 11:51:53 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-01-06 11:51:53 (GMT) |
commit | e215fc40c9216a6a320b55a78d94854289bc7a72 (patch) | |
tree | 440b9e02221109301893a7a4e651666eada9a269 /doc/Coding_style | |
parent | 525b182259442ef2f29349b8bc6ee46c0d880b23 (diff) | |
download | fluxbox_pavel-e215fc40c9216a6a320b55a78d94854289bc7a72.zip fluxbox_pavel-e215fc40c9216a6a320b55a78d94854289bc7a72.tar.bz2 |
update
Diffstat (limited to 'doc/Coding_style')
-rw-r--r-- | doc/Coding_style | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/Coding_style b/doc/Coding_style index d0eba0d..df5e398 100644 --- a/doc/Coding_style +++ b/doc/Coding_style | |||
@@ -4,7 +4,7 @@ It might look strange now in some places, that is because | |||
4 | the code hasnt been "translated" to tab 100% yet. | 4 | the code hasnt been "translated" to tab 100% yet. |
5 | Use a tab size of 2 and you will be fine. | 5 | Use a tab size of 2 and you will be fine. |
6 | 6 | ||
7 | note if-statement: | 7 | if-statements: |
8 | 8 | ||
9 | if ( stuff ) | 9 | if ( stuff ) |
10 | function(stuff, more stuff, | 10 | function(stuff, more stuff, |
@@ -15,7 +15,7 @@ note if-statement: | |||
15 | stuff, | 15 | stuff, |
16 | stuff); | 16 | stuff); |
17 | 17 | ||
18 | if the functionline needs to be split up, like above, right after a if-statement | 18 | if the functionline needs to be split up, like above, right after an if-statement |
19 | use { and }, so its clear when the if-statement ends. | 19 | use { and }, so its clear when the if-statement ends. |
20 | It should look like this | 20 | It should look like this |
21 | 21 | ||
@@ -29,7 +29,8 @@ It should look like this | |||
29 | stuff); | 29 | stuff); |
30 | } | 30 | } |
31 | 31 | ||
32 | The includeguards: | 32 | |
33 | The include guards: | ||
33 | _FILENAME_HH_ | 34 | _FILENAME_HH_ |
34 | 35 | ||
35 | 36 | ||
@@ -43,3 +44,8 @@ Function comments: | |||
43 | type classname::function(...) { | 44 | type classname::function(...) { |
44 | 45 | ||
45 | } | 46 | } |
47 | |||
48 | |||
49 | enums must be in uppercase letters: | ||
50 | enum {WHITE, RED, BLUE}; | ||
51 | |||