Re: Lindent fixed to match reality

From: Tim Hockin
Date: Thu Jan 29 2004 - 18:19:36 EST


Ahh, religion.

On Thu, Jan 29, 2004 at 11:54:56PM +0100, David Weinehall wrote:

> But I guess that was just a typo? Of course, since the ()'s are useless
> here anyway, and doesn't really bring any added bonus, we end up with
>
> sizeof *foo + 1
>
> vs
>
> sizeof*foo + 1

No, you're building a straw man. Everyone knows that you should always use
the parens on sizeof(). Just because you CAN leave them out SOMETIMES does
not mean you SHOULD.

> sizeoffoo
>
> would be invalid code, while
>
> sizeof foo
>
> is perfectly valid.

ooh, look at that straw man burn!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/