13-03-2015, 08:57 AM
You would need to deviate from rule 6.1 if you wish to use an enumeration type as your essentially boolean type.
An alternative would be to define your bool_t as an unsigned int.
An alternative would be to define your bool_t as an unsigned int.
Code:
typedef unsigned int bool_t;
Posted by and on behalf of the MISRA C Working Group