Update coding guidelines

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-05-18 05:52:52 +00:00
parent 76a22457ce
commit 99876da380

View File

@@ -56,3 +56,18 @@ switch (foo) {
other(); other();
break; break;
} }
No nested statements without braces, e.g. no:
for (x=0;x<5;x++)
if (foo)
if (bar)
baz();
instead do:
for (x=0;x<5;x++) {
if (foo) {
if (bar)
baz();
}
}