Messages in this thread | | | From | David Howells <> | Subject | Re: condingstyle, was Re: utrace comments | Date | Wed, 02 May 2007 13:05:34 +0100 |
| |
Eric W. Biederman <ebiederm@xmission.com> wrote:
> > But the condition doesn't line up with the code: > > Exactly. The condition not lining up with the following code helps > code helps separate the two.
Sorry about that: I realised you were agreeing with me about 5s after I sent the message.
> However there is the practical way to solve this if you have > a sufficiently large conditional, or the conditional appears > several times.
That doesn't necessarily work - for instance if the condition has side effects on local variables (eg: postinc). OTOH, large complex conditions with side effects have to be abused with care and preferably avoided. goto is your friend:-)
David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |