[lkml]   [2007]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: coding style for long conditions (WAS: Re: [PATCH 25/90] ... blinky leds!!)

    On Apr 6 2007 15:40, David Brownell wrote:
    >> > if (...) {
    >> > }
    >> >
    >> >Come on, stop wasting everyone's time with utter nonsense.
    >> I was never debating these two things.
    >Actually, you did.

    If it was perceived I did, then I owe you an apology.

    >Go back and see the point I was specifically
    >disagreeing with. It related to the body of the "if" block,
    >which you had said would **NOT** indent by a single tab.

    Ok somewhere is a bug. What is the body an if block, for you? To avoid
    that confusion, I termed these "condition" and "code":

    if(condition1 || /* if() line */
    condition2) { /* continuation line */
    code; /* body */
    code; /* body */

    And I think I made that pretty clear in <>,
    which part is what, and how I like things.
    In <>, the loop begins then.
    Yes, it does not match "(a) only use tabs", but it matches the
    rest of kernel code.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-04-07 01:55    [W:0.045 / U:36.328 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site