Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751039AbWHAVmg (ORCPT ); Tue, 1 Aug 2006 17:42:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751040AbWHAVmg (ORCPT ); Tue, 1 Aug 2006 17:42:36 -0400 Received: from terminus.zytor.com ([192.83.249.54]:11978 "EHLO terminus.zytor.com") by vger.kernel.org with ESMTP id S1751029AbWHAVmf (ORCPT ); Tue, 1 Aug 2006 17:42:35 -0400 Message-ID: <44CFCA98.4080400@zytor.com> Date: Tue, 01 Aug 2006 14:41:44 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: Jeff Garzik CC: ricknu-0@student.ltu.se, linux-kernel@vger.kernel.org, Andrew Morton , Alexey Dobriyan , Vadim Lobanov , Jan Engelhardt , Shorty Porty , Peter Williams , Michael Buesch , Pekka Enberg , Stefan Richter , larsbj@gullik.net, Paul Jackson , Josef Sipek , Arnd Bergmann , Nicholas Miell , Alan Cox , Lars Noschinski Subject: Re: [PATCH 1/2] include/linux: Defining bool, false and true References: <1154175570.44cb5252d3f09@portal.student.luth.se> <1154176331.44cb554b633ef@portal.student.luth.se> <44CFA934.9010404@zytor.com> <44CFC669.1040709@garzik.org> In-Reply-To: <44CFC669.1040709@garzik.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 26 Jeff Garzik wrote: > H. Peter Anvin wrote: >> ricknu-0@student.ltu.se wrote: >>> This patch defines: >>> * a generic boolean-type, named "bool" >>> * aliases to 0 and 1, named "false" and "true" >>> >>> Signed-off-by: Richard Knutsson >> >> Shouldn't this simply use _Bool? > > No sane person should use "_Bool" in real code. Unnecessary StudlyCaps > and unnecessary underscore. > > "bool" is far easier to type, and looks less weird. > That wasn't the point. The point was that bool should be a typedef to _Bool instead of an enum. -hpa - 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/