mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -78,7 +78,6 @@ for (x=0;x<5;x++) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Make sure you never use an uninitialized variable. The compiler will
|
||||
usually warn you if you do so.
|
||||
|
||||
@@ -154,3 +153,14 @@ if (name && (len = strlen(name) + strlen(prefix) + strlen(postfix) + 3) && (newn
|
||||
|
||||
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>
|
||||
|
Reference in New Issue
Block a user