Update CODING and HACKING files, and add po/README file for translators.
[geeqie.git] / CODING
1 Please keep the general coding style of Geeqie:
2
3 Space after if, while and for:
4 ------------------------------
5
6 while (...)
7 for (...)
8 if (...)
9
10 Indentation of {}:
11 ------------------
12
13 while (...)
14         {
15         ...
16         }
17
18 if (...)
19         {
20         ...
21         }
22 else
23         {
24         ...
25         }
26
27 Spaces around operators:
28 ------------------------
29
30 i = 2;
31 x = i * (j / 2);
32
33
34 Space after comma:
35 ------------------
36 func(a, b, c);
37
38 Functions without any parameter should be declared using void:
39 --------------------------------------------------------------
40 gint function(void)
41 {
42 ...
43 }
44
45 Use glib types:
46 ---------------
47 Please use glib types when possible (ie. gint and gchar instead of int and char)
48 .
49
50 Use glib functions:
51 -------------------
52 Use glib functions when possible (ie. g_ascii_isspace() instead of isspace()).
53 Check if used functions are not deprecated.
54
55 Others:
56 -------
57 Check twice the indentation and spurious whitespaces.
58
59 Try to use explicit variable and function names.