Re: [PATCH] add bool types support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +typedef _Bool			bool;
> [...]
>  #define false 0
>  #define true 1

I'm sorry, I don't understand. I swear bool true and false should
never be part of a sane C program.

It's misleading, as people tend to write "if (x == true)" which is
almost always wrong.   I didn't expect such definitions to be in a
new sane project like V2.

Any explanation is welcome
/alessandro

ps: the names "Das U-Boot" and "V2" pick from the same semantic area...

_______________________________________________
u-boot-v2 mailing list
u-boot-v2@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/u-boot-v2

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux