From: Wolfgang Denk Date: Tue, 08 Jan 2013 07:25:40 +0100 Subject: [U-Boot] [PATCH] Introduce a global bool type In-Reply-To: References: <1357596628-27501-1-git-send-email-yorksun@freescale.com> <20130107223942.94BED20DA7E@gemini.denx.de> Message-ID: <20130108062540.C95E3200732@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear M?ns Rullg?rd, In message you wrote: > > >> +typedef _Bool bool; > > > > And what exactly would "_Bool" be? > > _Bool is a C99 type (though I fail to imagine why). If using this, one > might as well use the C99 header stdbool.h providing macros for 'bool', > 'true' and 'false' instead of this. Agreed - if we should really stick with that, that that's the way to go. > > Can we rather try and get rid of all this "bool" stuff instead? It's > > just obfuscating the code... > > Indeed. Thanks. Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Save energy: Drive a smaller shell.