[RSP] Try to introduce a new type for Booleans.

This commit is contained in:
2016-02-11 20:15:19 -05:00
parent caf22acb68
commit e20b80e65c
1 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,17 @@
*/ */
typedef void(*p_func)(void); typedef void(*p_func)(void);
/*
* `BOOL` is Windows-specific so is going to tend to be avoided.
* `int` is the exact replacement.
*
* However, saying "int" all the time for true/false is a little ambiguous.
*
* Maybe in the future, with C++ (or C99) rewrites, we can switch to `bool`.
* Until then, a simple type definition will help emphasize true/false logic.
*/
typedef int Boolean;
typedef union tagUWORD { typedef union tagUWORD {
int32_t W; int32_t W;
uint32_t UW; uint32_t UW;