svn commit: samba r25156 - in branches/SAMBA_3_2: .

jerry at samba.org jerry at samba.org
Fri Sep 14 12:06:37 GMT 2007


Author: jerry
Date: 2007-09-14 12:06:34 +0000 (Fri, 14 Sep 2007)
New Revision: 25156

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25156

Log:
Update coding guiding wrt to primitive data types
Modified:
   branches/SAMBA_3_2/README.Coding


Changeset:
Modified: branches/SAMBA_3_2/README.Coding
===================================================================
--- branches/SAMBA_3_2/README.Coding	2007-09-14 12:05:32 UTC (rev 25155)
+++ branches/SAMBA_3_2/README.Coding	2007-09-14 12:06:34 UTC (rev 25156)
@@ -214,3 +214,18 @@
 	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



More information about the samba-cvs mailing list