One byte bool
One byte bool
- Subject: One byte bool
- From: Mark Stultz <email@hidden>
- Date: Tue, 14 Mar 2006 16:18:44 -0600
Hello,
I'm in the process of converting our game library into Universal Binaries
(fun!) I got everything up and built in about 30 minutes. I've only ran
into issues due to structures using bool's (sigh). Of course, the default
size is 4 bytes on PPC and 1 byte on x86.
The option...
"Use a size of 1 byte (instead of 4 bytes) for the 'bool' type.
[GCC_ONE_BYTE_BOOL, -mone-byte-bool]
Warning: this setting generates code that may not binary compatible with
code generated without this setting or with Mac OS X frameworks."
...does exist. That warning scares me. As does that typo: "may not binary
compatible". What real issues can I expect to encounter with this? Moving
forward, I'm not opposed to using a uint8 instead of a bool. Would that be
a better option?
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden