Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757942Ab1DZUd2 (ORCPT ); Tue, 26 Apr 2011 16:33:28 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:60248 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757868Ab1DZUdZ (ORCPT ); Tue, 26 Apr 2011 16:33:25 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Zkf5UZB/6ciNg4S/5xk/9BPQr9nt3P5XLKLeKUsOGm74hSkOx5IGUqm2AOAXQFA0Ax tHC/OJproD/swbYkTwQA7VhLM2KEdy/bAma2EHFtTfJAzBjVa7CWQCr0A4Ngi6coFvff 6grLvhIDNK95P8y/v+Qq0pNoTeiNJfW4ybpeI= MIME-Version: 1.0 In-Reply-To: <1303849650.2232.41.camel@offworld> References: <1303849650.2232.41.camel@offworld> Date: Tue, 26 Apr 2011 17:33:24 -0300 Message-ID: Subject: Re: [PATCH] linux/string.h: Introduce streq macro. From: Thiago Farina To: Davidlohr Bueso Cc: linux-kernel@vger.kernel.org, Steven Rostedt Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 768 Lines: 25 On Tue, Apr 26, 2011 at 5:27 PM, Davidlohr Bueso 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 > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/