From: Tom Rini Date: Tue, 2 Apr 2013 15:07:09 -0400 Subject: [U-Boot] [Patch v8] Consolidate bool type In-Reply-To: <1364840951-25058-1-git-send-email-yorksun@freescale.com> References: <1364840951-25058-1-git-send-email-yorksun@freescale.com> Message-ID: <20130402190709.GC15196@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 01, 2013 at 11:29:11AM -0700, York Sun wrote: > 'bool' is defined in random places. This patch consolidates them into a > single header file include/linux/types.h, using stdbool.h introduced in C99. > > All other #define, typedef and enum are removed. They are all consistent with > true = 1, false = 0. > > Replace FALSE, False with false. Replace TRUE, True with true. > Skip *.py, *.php, lib/* files. > > Signed-off-by: York Sun > --- > Change since v1: > Move 'false' and 'true' to the common header file. > > Change since v2: > Use stdbool.h > Consolidate all TRUE, FALSE, True, False, true, false > > Change since v3: > Fix boolean_t which was missed in v2. > > Change since v4: > Replace FALSE, False with false. Replace TRUE, True with true. > > Change since v5: > Revert changes for *.py, *.php, lib/* files. > Revert change to type conversions. > Revert comment-only changes. (Not sure about if we should replace the comments). > Fix many coding style issues but left drivers/net/npe alone (way too many issues). > > Change since v6: > Remove RFC from subject. > Acked-by: Allen Martin > > Change since v7: > Rebase to latest master branch. Applied to u-boot/master after building all of my world as well. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: