Merge pull request #996 from cxd4/rsp-Boolean-type

[RSP] Try to introduce a new type for Booleans.
This commit is contained in:
zilmar 2016-02-13 19:05:53 +11:00
commit 241befb67b
1 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,17 @@
*/
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 {
int32_t W;
uint32_t UW;