Document the Geeqie coding style.
[geeqie.git] / CODING
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