1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r25156: Update coding guiding wrt to primitive data types

This commit is contained in:
Gerald Carter 2007-09-14 12:06:34 +00:00 committed by Gerald (Jerry) Carter
parent 3ac7566ae1
commit 01d4274490

View File

@ -214,3 +214,18 @@ or
if (!x) {
fprintf(stderr, "Unable to alloc memory!\n");
}
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