bool => int or char?

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Nov 3 10:42:16 MDT 2010


On Wed, Nov 03, 2010 at 05:39:40PM +0100, Stefan (metze) Metzmacher wrote:
> sizeof(bool) is 1.
> 
> I'm currently adding more checks to lib/replace/wscript,
> so that that we see all the sizes in the build farm.
> 
> Currently we typedef bool to int, we the system doesn't have
> bool, maybe we should change it to 'unsigned char', so
> that sizeof(bool) is 1 there too.

Ok, thanks. Then we have to live with that broken API I
think.

Volker


More information about the samba-technical mailing list