Mercurial > geeqie.yaz
diff CODING @ 611:f31ae0d9e163
Update CODING and HACKING files, and add po/README file for translators.
author | zas_ |
---|---|
date | Fri, 09 May 2008 08:03:25 +0000 |
parents | 86f4c42afeab |
children | f20e7cebcb12 |
line wrap: on
line diff
--- a/CODING Fri May 09 07:46:18 2008 +0000 +++ b/CODING Fri May 09 08:03:25 2008 +0000 @@ -1,12 +1,14 @@ Please keep the general coding style of Geeqie: Space after if, while and for: +------------------------------ while (...) for (...) if (...) Indentation of {}: +------------------ while (...) { @@ -23,16 +25,35 @@ } Spaces around operators: +------------------------ i = 2; +x = i * (j / 2); + Space after comma: +------------------ func(a, b, c); -Use glib functions when possible (ie. g_ascii_isspace() instead of isspace()). +Functions without any parameter should be declared using void: +-------------------------------------------------------------- +gint function(void) +{ +... +} + +Use glib types: +--------------- Please use glib types when possible (ie. gint and gchar instead of int and char) . +Use glib functions: +------------------- +Use glib functions when possible (ie. g_ascii_isspace() instead of isspace()). +Check if used functions are not deprecated. + +Others: +------- Check twice the indentation and spurious whitespaces. -Try to use explicit variable and function names +Try to use explicit variable and function names.