BOOL vs. bool [was Re: svn commit: samba r25126]

simo idra at samba.org
Thu Sep 13 19:16:44 GMT 2007


On Thu, 2007-09-13 at 13:46 -0500, Gerald (Jerry) Carter wrote:
> 
> ok. How does this sound for README.Coding then:
> 
> Primitive Data Types
> --------------------
> 
> Samba has large amounts of historical code which makes use of data
> types commonly supported by the C99 standard. However, at the time
> such types as boolean and exact width integers did not exist and
> Samba developers were forced to provide their own.  Now that these
> types are guaranteed to be available either as part of the compiler
> C99 support or from lib/replace/, new code should adhere to the
> following conventions:
> 
>   * Booleans are of type "bool" (not BOOL)
>   * Boolean values are "true" and "false" (not True or False)
>   * Exact width integers are of type [u]int[8|16|32|64]_t

Very well done.
+1

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list