On 2015-11-30 at 08:02 "'Davide Libenzi' via Akaros"
<[email protected]> wrote:
> I heard Barret mentioning a few times the Linux one. We are pretty
> close to that, modulo 4 vs. 8 space TABs.

Yeah, that's basically it.  I regret not going with the full linux
style and being done with it.  But it's fine for now.  =)

There's a couple other fun things we do differently.  For instance, our
docs say to use spaces for formatting, instead of tabs.  This is a
little diff than Linux too.  Here's an example:

int foo(void)
{
        for (;;;) {
                call_func(arg1,
                          arg2);
        }
}

For the line with arg2, we tab up to call_func, then use spaces up to
(.  The benefit is that when/if we change tabstop, the line up might
still be okay.  There might be other benefits; I don't care much.  In
linux, you tab as far as you can go, and then use spaces to do the
final line up.  

I don't bother enforcing that one, since I don't have a strong
preference and checkpatch doesn't look for it.

Barret



-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to