From owner-freebsd-standards@FreeBSD.ORG Sun Jan 4 14:30:22 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 457F916A4CE for ; Sun, 4 Jan 2004 14:30:22 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2980043D45 for ; Sun, 4 Jan 2004 14:30:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i04MUJFR039340 for ; Sun, 4 Jan 2004 14:30:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i04MUJm2039334; Sun, 4 Jan 2004 14:30:19 -0800 (PST) (envelope-from gnats) Date: Sun, 4 Jan 2004 14:30:19 -0800 (PST) Message-Id: <200401042230.i04MUJm2039334@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Tony Finch Subject: Re: standards/60772: _Bool and bool should be unsigned X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tony Finch List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2004 22:30:22 -0000 The following reply was made to PR standards/60772; it has been noted by GNATS. From: Tony Finch To: Bruce Evans Cc: bug-followup@FreeBSD.org Subject: Re: standards/60772: _Bool and bool should be unsigned Date: Sun, 4 Jan 2004 22:23:46 +0000 On Sun, Jan 04, 2004 at 05:40:15AM -0800, Bruce Evans wrote: > > We have gcc's stdbool.h in RELENG_4 but don't install it. It uses: > > % typedef enum > % { > % false = 0, > % true = 1 > % } bool; > > This causes slightly different problems than typedef "int bool". I > noticed the following: Also, the standard requires that bool, true, and false are #defines. Tony. -- f.a.n.finch http://dotat.at/ MULL OF KINTYRE TO ARDNAMURCHAN POINT: SOUTH VEERING SOUTHWEST AT 4 OR 5 LOCALLY 6, DECREASING 3 OR 4 FOR A TIME. RAIN FOR MUCH OF THE TIME. MODERATE DECREASING POOR AT TIMES. MODERATE TO ROUGH.