[lkml]   [2006]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH] A generic boolean (version 4)
    >> > +#define false false
    >> > +#define true true
    >> Can someone please tell me what advantage 'define true true' is going to
    >> bring, besides than being able to '#ifdef true'?
    > It
    > (a) makes type information available to the C compiler, where a plain #define
    > does not.

    Do you mean preprocessor? C already knows about true from the enum.

    > (b) handles all '#ifndef true' statements properly

    Holy *, is there _really_ code in linux/ that depends on true being
    [not] defined?

    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-07-23 23:39    [W:0.022 / U:1.148 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site