aboutsummaryrefslogtreecommitdiff
path: root/doc/Coding_style
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-06 11:51:53 (GMT)
committerfluxgen <fluxgen>2002-01-06 11:51:53 (GMT)
commite215fc40c9216a6a320b55a78d94854289bc7a72 (patch)
tree440b9e02221109301893a7a4e651666eada9a269 /doc/Coding_style
parent525b182259442ef2f29349b8bc6ee46c0d880b23 (diff)
downloadfluxbox_paul-e215fc40c9216a6a320b55a78d94854289bc7a72.zip
fluxbox_paul-e215fc40c9216a6a320b55a78d94854289bc7a72.tar.bz2
update
Diffstat (limited to 'doc/Coding_style')
-rw-r--r--doc/Coding_style12
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
4the code hasnt been "translated" to tab 100% yet. 4the code hasnt been "translated" to tab 100% yet.
5Use a tab size of 2 and you will be fine. 5Use a tab size of 2 and you will be fine.
6 6
7note if-statement: 7if-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
18if the functionline needs to be split up, like above, right after a if-statement 18if the functionline needs to be split up, like above, right after an if-statement
19use { and }, so its clear when the if-statement ends. 19use { and }, so its clear when the if-statement ends.
20It should look like this 20It should look like this
21 21
@@ -29,7 +29,8 @@ It should look like this
29 stuff); 29 stuff);
30 } 30 }
31 31
32The includeguards: 32
33The include guards:
33_FILENAME_HH_ 34_FILENAME_HH_
34 35
35 36
@@ -43,3 +44,8 @@ Function comments:
43type classname::function(...) { 44type classname::function(...) {
44 45
45} 46}
47
48
49enums must be in uppercase letters:
50enum {WHITE, RED, BLUE};
51