git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4cf1c5
)
Mention typedef struct in README.Coding
author
Volker Lendecke
<vl@samba.org>
Sat, 14 Nov 2009 11:55:41 +0000
(12:55 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 14 Nov 2009 11:56:30 +0000
(12:56 +0100)
README.Coding
patch
|
blob
|
history
diff --git
a/README.Coding
b/README.Coding
index 2e7dd2f3f245991caa75c17d783a92bd85113f62..981da6c96cbda435795a6f4eae821a9fb8aec0db 100644
(file)
--- 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.