summaryrefslogtreecommitdiffstats
path: root/README.Coding
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-14 12:55:41 +0100
committerVolker Lendecke <vl@samba.org>2009-11-14 12:56:30 +0100
commit8e2bbb8a330d29ed745e097374016815f9fed544 (patch)
treee377255ed63939a24cd7fc9fc43a3f1d4ae9b556 /README.Coding
parentf4cf1c56a20916018c9a6513754b0b08c24c9d04 (diff)
downloadsamba-8e2bbb8a330d29ed745e097374016815f9fed544.tar.gz
samba-8e2bbb8a330d29ed745e097374016815f9fed544.tar.xz
samba-8e2bbb8a330d29ed745e097374016815f9fed544.zip
Mention typedef struct in README.Coding
Diffstat (limited to 'README.Coding')
-rw-r--r--README.Coding8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.Coding b/README.Coding
index 2e7dd2f3f2..981da6c96c 100644
--- a/README.Coding
+++ b/README.Coding
@@ -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.