Coding style

edscott wilson garcia edscott at imp.mx
Fri Mar 14 21:30:56 CET 2003


El vie, 14-03-2003 a las 13:28, Jens Luedicke escribió:
> On Fri, 2003-03-14 at 14:24, Benedikt Meurer wrote:
> 
> > Anything important to note in addition? Opinion? Olivier, is that OK?
> 
> indenting: tabs instead of spaces. 
> 
> and I prefer:
> 
> if () {
> } else {
> }

I do this a lot for short if/else blocks, along with KNF for large
blocks. But this is a rather minor detail for me. What is more
important, IMHO, is that indentation be context sensitive, like the
following line: 

gtk_tree_store_set((GtkTreeStore *) treemodel, target,
		 MODE_COLUMN,mode_string(en->st->st_mode),
		 DATE_COLUMN,time_string(en->st->st_mtime),
		 GROUP_COLUMN, group,
		 OWNER_COLUMN, owner, 
		 SIZE_COLUMN, tag, 
		 -1);

Instead of having it all run through in a single loong line.

Edscott







More information about the Xfce4-dev mailing list