Document the Geeqie coding style.
authorLaurent Monin <geeqie@norz.org>
Fri, 25 Apr 2008 09:28:45 +0000 (09:28 +0000)
committerLaurent Monin <geeqie@norz.org>
Fri, 25 Apr 2008 09:28:45 +0000 (09:28 +0000)
This is a draft, please improve.

CODING [new file with mode: 0644]

diff --git a/CODING b/CODING
new file mode 100644 (file)
index 0000000..c2f0782
--- /dev/null
+++ b/CODING
@@ -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.
+