Re: kernel guide to space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 7/11/05, Michael S. Tsirkin <[email protected]> wrote:

> 3e. sizeof
>        space after the operator
>        sizeof a

If braces are used no spaces please : sizeof(struct foo) 
 
> 
> 4c. Breaking long lines
>                Descendants are always substantially shorter than the parent
>                and are placed substantially to the right.
>                        Documentation/CodingStyle
> 
>        Descendant must be indented at least to the level of the innermost
>        compound expression in the parent. All descendants at the same level
>        are indented the same.
>        if (foobar(.................................) + barbar * foobar(bar +
>                                                                        foo *
>                                                                        oof)) {
>        }

Ugh, that's as ugly as it can get... Something like below is much
easier to read...

        if (foobar(.................................) +
            barbar * foobar(bar + foo * oof)) {
        }

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux