On 23.04.15 10:14, Sergey Vojtovich wrote:
Hi!

According to MySQL coding guidelines:
https://dev.mysql.com/doc/internals/en/additional-suggestions.html

<quot>
* In C code, use TRUE and FALSE rather than 1/0

* In C++ code, it is OK to use true and false (do not use 1/0). You can use C++
   bool/true/false when calling C functions (values will be safely promoted to
   my_bool).
</quot>

"It is OK" == "it is allowed to use it." (about true/false)

you have not use 1/0

and TRUE/FALSE must in C and OK in C++ (there is no other told)

So I should carefully check what code it is or just use TRUE/FALSE?

I prefer TRUE/FALSE everywhere.

[skip]

_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to