[Swan] initial thoughts on uncrustifying libreswan

Richard Guy Briggs rgb at tricolour.net
Fri May 24 06:47:57 EEST 2013


On Thu, May 23, 2013 at 05:21:09PM -0400, Paul Wouters wrote:
> On Thu, 23 May 2013, Richard Guy Briggs wrote:
> >>I also hate opening braces being on their own line.  Waste of screen
> >>space. :)
> >
> >I'm with Len on this.
> 
> What I've tried to stick to is to use the braces on the same lines for
> small bits of codes:
> 
> 	if (foo) {
> 		bar();
> 	}
> 
> but use braces on their own line when the block is introducing new
> variables.

Any particular reason?

> 	if (foo)
> 	{
> 		struct thing;
> 
> 		thing = alloc_bytes(foo, "stuff");
> 		[...]
> 	}
> 
> Paul

	slainte mhath, RGB

--
Richard Guy Briggs               --  ~\    -- ~\            <hpv.tricolour.net>
<www.TriColour.net>                --  \___   o \@       @       Ride yer bike!
Ottawa, ON, CANADA                  --  Lo_>__M__\\/\%__\\/\%
Vote! -- <greenparty.ca>_____GTVS6#790__(*)__(*)________(*)(*)_________________


More information about the Swan mailing list