[Asterisk-cvs] asterisk/doc CODING-GUIDELINES,1.6,1.7

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Mar 31 22:44:46 CST 2005


Update of /usr/cvsroot/asterisk/doc
In directory mongoose.digium.com:/tmp/cvs-serv28809/doc

Modified Files:
	CODING-GUIDELINES 
Log Message:
Update README to reflect modern Asterisk features and requirements
Add note in UPGRADE.txt about compiler requirements
Add note to CODING-GUIDELINES about new policy for CLI command structure


Index: CODING-GUIDELINES
===================================================================
RCS file: /usr/cvsroot/asterisk/doc/CODING-GUIDELINES,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CODING-GUIDELINES	19 Jan 2005 02:34:59 -0000	1.6
+++ CODING-GUIDELINES	1 Apr 2005 04:38:12 -0000	1.7
@@ -78,7 +78,6 @@
 }
 
 
-
 Make sure you never use an uninitialized variable.  The compiler will 
 usually warn you if you do so.
 
@@ -154,3 +153,14 @@
 
 Use const on pointers which your function will not be modifying, as this 
 allows the compiler to make certain optimizations.
+
+== CLI Commands ==
+
+New CLI commands should be named using the module's name, followed by a verb
+and then any parameters that the command needs. For example:
+
+*CLI> iax2 show peer <peername>
+
+not
+
+*CLI> show iax2 peer <peername>




More information about the svn-commits mailing list