bool different in C and C++?
Linus Torvalds
torvalds at linux-foundation.org
Sat Nov 18 11:03:52 PST 2017
On Sat, Nov 18, 2017 at 10:40 AM, Berthold Stoeger
<bstoeger at mail.tuwien.ac.at> wrote:
>
> I figure pref.h counts as such a local use, because it is purely an
> application-internal thing? Or would you prefer going the short (or char?)
> route?
We seem to depend on "bool" a lot, so might as well keep them that way.
I actually suspect it would be good to make them bitfields if size
matters (and the fact that we use "short" at all implies somebody
thought it did - it's the only real reason to ever use that type).
Of course, if we take the addresses of them (I don't see any, but I
didn't check very closely) bitfields don't work.
Linus
More information about the subsurface
mailing list