[lkml]   [2006]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch 1/1] consolidate TRUE and FALSE
    >> of course.  but that it's not used in core code implies this opinion is
    >> widely shared.
    >[...] To me it is a simple consequence of there not
    >being a boolean type in the kernel so you cannot use it in the core code.

    typedef bool int;

    And then happily use if(EXPR) and if(!EXPR) instead of if(EXPR == TRUE) or
    if(EXPR == FALSE). :-)

    But typedeffing it to int (or unsigned char, if someone likes that
    for space optimization) does not "catch overflows" (see another lkml
    mail from me) as _Bool would.

    Jan Engelhardt
    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: 2006-03-16 21:01    [W:0.018 / U:70.920 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site