[sldev] BOOL patch, and test results.

Dzonatas dzonatas at dzonux.net
Fri May 18 00:14:40 PDT 2007


Andrew Meadows wrote:
>
> The original reason for the BOOL typedef was to enforce known
> byte footprints for all types.  The size of a bool is platform
> dependent and we didn't want to get bitten between operating
> systems when trying to pack bool's into packets and other binary
> blobs.

If the BOOL value is not used as an integer, basic truth comparison
should optimize and downsize automatically. It's still pretty common to
use plain 1's and 0's as truth values, and the optimization step is an
oldie.


-- 



More information about the SLDev mailing list