Mercurial > geeqie
comparison CODING @ 524:7659ccaf2a74
Document the Geeqie coding style.
This is a draft, please improve.
author | zas_ |
---|---|
date | Fri, 25 Apr 2008 09:28:45 +0000 |
parents | |
children | 86f4c42afeab |
comparison
equal
deleted
inserted
replaced
523:0717bcc4f2b7 | 524:7659ccaf2a74 |
---|---|
1 Please keep the general coding style of Geeqie: | |
2 | |
3 Space after if, while and for: | |
4 | |
5 while (...) | |
6 for (...) | |
7 if (...) | |
8 | |
9 Indentation of {}: | |
10 | |
11 while (...) | |
12 { | |
13 ... | |
14 } | |
15 | |
16 if (...) | |
17 { | |
18 ... | |
19 } | |
20 else | |
21 { | |
22 ... | |
23 } | |
24 | |
25 Spaces around operators: | |
26 | |
27 i = 2; | |
28 | |
29 Space after comma: | |
30 func(a, b, c); | |
31 | |
32 Use glib functions when possible (ie. g_ascii_isspace() instead of isspace()). | |
33 Please use glib types when possible (ie. gint and gchar instead of int and char) | |
34 . | |
35 | |
36 Check twice the indentation and spurious whitespaces. | |
37 |