[Xfce4-commits] <midori:master> Add notes about variable ordering and prefixes to HACKING file
Christian Dywan
noreply at xfce.org
Sat Feb 6 17:32:03 CET 2010
Updating branch refs/heads/master
to 9b468c5654d0029af7680179496c24ec83a9fad6 (commit)
from 458252d053c07752ca2b51d11a421c6cac258a2c (commit)
commit 9b468c5654d0029af7680179496c24ec83a9fad6
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Feb 6 17:31:03 2010 +0100
Add notes about variable ordering and prefixes to HACKING file
HACKING | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/HACKING b/HACKING
index 482ca09..944dfa8 100644
--- a/HACKING
+++ b/HACKING
@@ -8,13 +8,16 @@ avoid automated line-breaks. Trailing whitespace is not desirable.
Declarations go to the beginning of a block, not inline. Variables of one plain
type may be grouped in one declaration, pointer types may not be grouped. The
asterisk goes next to the type.
+Variables should be ordered in the order they are used.
Comments explain functionality, they should not state facts. The appropriate
style is always C style /* */, not C++ style.
Variable and function names should be animal, animal_shelter or animalsc in
case it would otherwise be very long. Loop counters may be single letters.
-Type names should be Animal, AnimalShelter or AnimalSC.
+Type names should be Animal, AnimalShelter or AnimalSC. No prefixes from third
+party projects should be used, such as GTK or WebKit, while underlines may be
+used but do not have a particular meaning.
There is a space between functions or keywords and round brackets, and curly
brackets always go on separate lines, at the indentation level of the
More information about the Xfce4-commits
mailing list