lkml.org 
[lkml]   [2011]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] linux/string.h: Introduce streq macro.
    From
    On Tue, Apr 26, 2011 at 5:27 PM, Davidlohr Bueso <dave@gnu.org> wrote:
    > On Tue, 2011-04-26 at 15:49 -0300, Thiago Farina wrote:
    >> This macro is arguably more readable than its variants:
    >> - !strcmp(a, b)
    >> - strcmp(a, b) == 0
    >
    > Anyone how is going to be reading kernel C code, can understand strcmp I
    > think.
    >
    We all know that, but please see the previous discussion.

    http://www.spinics.net/lists/kernel/msg1176975.html
    http://www.spinics.net/lists/kernel/msg1176977.html

    Best regards,

    > Cheers,
    > Davidlohr
    >
    >


    \
     
     \ /
      Last update: 2011-04-26 22:35    [W:0.022 / U:32.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site