Skip to content

Commit

Permalink
Document the Geeqie coding style.
Browse files Browse the repository at this point in the history
This is a draft, please improve.
  • Loading branch information
Laurent Monin committed Apr 25, 2008
1 parent 74182a1 commit 23b9828
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CODING
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 23b9828

Please sign in to comment.