|Synopsis:||bool shall be used as boolean type.|
Different types of booleans should not be mixed (bool, Boolean, _Bool, int and embedded C-language boolean expression) because they have different definitions and therefore different behavior.
#define TRUE 1 int b = TRUE; /* WRONG */ bool my_bool = true; /* RIGHT */
If a variable is passed to an X Motif library function it should be declared as being of type Boolean instead of bool. This is because the X Motif library function expect this Boolean type, which has a subtle different semantics compared to bool.