Coding style

Jasper Huijsmans jasper at moongroup.com
Fri Mar 14 14:33:29 CET 2003


On Fri, 14 Mar 2003 14:24:02 +0100
Benedikt Meurer <Benedikt.Meurer at unix-ag.uni-siegen.de> wrote:

> Hello all,
> 
> I think its time to standardize on a common coding style. Just to make
> sure, everyone gets the point:
> 
> 	* Use glib functions where possible
> 	* Prefer g_strdup_* over snprintf() and friends (maybe a
> 	question
> 	  of context)
> 	* Editor settings: sw=4 ts=4 et (this is what jasper and olivier
> 	  seems to be using)
> 

ts=8

And block opening curly braces on new line (you have changed that in
certain places), so

if ()
{
}
else
{
}

instead of

if () {
} else {
}

There's a .indent.pro file in xfwm4/src/ that should be used for the
coding style.

	Jasper



More information about the Xfce4-dev mailing list