# HG changeset patch # User zas_ # Date 1209115725 0 # Node ID 7659ccaf2a74fff8b92692c30dafe3cf053a906c # Parent 0717bcc4f2b7bc87a916c108c743fe2e30c2d502 Document the Geeqie coding style. This is a draft, please improve. diff -r 0717bcc4f2b7 -r 7659ccaf2a74 CODING --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CODING Fri Apr 25 09:28:45 2008 +0000 @@ -0,0 +1,37 @@ +Please keep the general coding style of Geeqie: + +Space after if, while and for: + +while (...) +for (...) +if (...) + +Indentation of {}: + +while (...) + { + ... + } + +if (...) + { + ... + } +else + { + ... + } + +Spaces around operators: + +i = 2; + +Space after comma: +func(a, b, c); + +Use glib functions when possible (ie. g_ascii_isspace() instead of isspace()). +Please use glib types when possible (ie. gint and gchar instead of int and char) +. + +Check twice the indentation and spurious whitespaces. +