Mention typedef struct in README.Coding
authorVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2009 11:55:41 +0000 (12:55 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2009 11:56:30 +0000 (12:56 +0100)
README.Coding

index 2e7dd2f3f245991caa75c17d783a92bd85113f62..981da6c96cbda435795a6f4eae821a9fb8aec0db 100644 (file)
@@ -233,3 +233,11 @@ 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
+
+
+Typedefs
+--------
+
+Samba tries to avoid "typedef struct { .. } x_t;", we always use
+"struct x { .. };". We know there are still those typedefs in the code,
+but for new code, please don't do that.