summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-05-15 15:34:31 +0000
committerMark Spencer <markster@digium.com>2004-05-15 15:34:31 +0000
commit2293ad0b1f933f576d2d97b52063071bb8b2e124 (patch)
tree4668e67ff52f9fa3f3f82ffa004d51511256d331 /doc
parentf59f077d2718ff319f81d8c9806932ec5ae900a2 (diff)
Update coding guidelines, fix "say.c" compile on older compilers, update coding guidelines (includes bug #1631)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/CODING-GUIDELINES5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/CODING-GUIDELINES b/doc/CODING-GUIDELINES
index 7d621b48d..04b5b38d9 100755
--- a/doc/CODING-GUIDELINES
+++ b/doc/CODING-GUIDELINES
@@ -6,6 +6,11 @@ see http://bugs.digium.com
Patches should be in the form of a unified (-u) diff.
+All code, filenames, function names and comments must be in ENGLISH.
+
+Do not declare variables mid-function (e.g. like GNU lets you) since it is
+harder to read and not portable to GCC 2.95 and others.
+
Don't annotate your changes with comments like "/* JMG 4/20/04 */";
Comments should explain what the code does, not when something was changed
or who changed it.