[lkml]   [2002]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: RFC: booleans and the kernel
    On Thursday 24 January 2002 14:39, Oliver Xymoron wrote:
    > The compiler _will_ turn if(a==0) into a test of a with itself rather than
    > a comparison against a constant. Since PDP days, no doubt.

    I thought that the whole point of booleans was to stop silly errors

    if ( x = 1 )
    printf ("\nX is true\n");
    # we never get here...

    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: 2005-03-22 13:15    [W:0.021 / U:7.224 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site