[Swan] initial thoughts on uncrustifying libreswan

Paul Wouters pwouters at redhat.com
Fri May 24 00:21:09 EEST 2013


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.

 	if (foo)
 	{
 		struct thing;

 		thing = alloc_bytes(foo, "stuff");
 		[...]
 	}

Paul


More information about the Swan mailing list