[Swan] initial thoughts on uncrustifying libreswan
Lennart Sorensen
lsorense at csclub.uwaterloo.ca
Fri May 24 20:49:22 EEST 2013
On Fri, May 24, 2013 at 11:39:30AM -0400, Paul Wouters wrote:
> func()
> {
> code;
> more code;
> int foo;
> even more code using foo;
> even even more code not using foo;
> }
>
> What is the scope of foo end?
>
> now compare:
>
> func()
> {
> code;
> more code;
> {
> int foo;
> even more code using foo;
> }
> even even more code not using foo;
> }
True, but most of the time you would have an if, for or while or something
that needed that block anyhow.
I suppose the macro trick I have seen done in the kernel for such things
tends to be:
do {
int foo;
code using foo;
} while(0);
Which gives the same result of course and adds nothing of value.
--
Len Sorensen
More information about the Swan
mailing list