[U-Boot] [Patch v8] Consolidate bool type
Tom Rini
trini at ti.com
Tue Apr 2 21:07:09 CEST 2013
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 <yorksun at freescale.com>
> ---
> 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 <amartin at nvidia.com>
>
> 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: <http://lists.denx.de/pipermail/u-boot/attachments/20130402/7a2fc3b2/attachment-0001.pgp>
More information about the U-Boot
mailing list