[MPlayer-users] [OFF-TOPIC] Allman/BSD-style indenter

Nico Sabbi Nicola.Sabbi at poste.it
Thu Apr 24 15:17:59 CEST 2008


Hi,
I'm search the right settings for GNU indent to reformat the code
using the Allman/BSD style, that is:

if(1)
{
	int a,b;

	while(a && b)
	{
		//something
	}
}

- using exclusively tabs instead of spaces for nested blocks
- starting and ending braces on the same column as the
  starting block
- no unneeded spaces in ()

in short the formatting I use in files like libmpdemux/demux_ts.c,
but it seems that GNU indent can't do it. Did I read incorrectly the 
man page?
Or can some other software do this?

Thanks,
	Nico



More information about the MPlayer-users mailing list