mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
update guidelines to follow their own rules for whitespace (bug #4486)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -90,7 +90,7 @@ for (x=0;x<5;x++) {
|
|||||||
Don't build code like this:
|
Don't build code like this:
|
||||||
|
|
||||||
if (foo) {
|
if (foo) {
|
||||||
.... 50 lines of code ...
|
/* .... 50 lines of code ... */
|
||||||
} else {
|
} else {
|
||||||
result = 0;
|
result = 0;
|
||||||
return;
|
return;
|
||||||
@@ -125,6 +125,7 @@ options that they are in fact intended to be global.
|
|||||||
|
|
||||||
When making applications, always ast_strdupa(data) to a local pointer if
|
When making applications, always ast_strdupa(data) to a local pointer if
|
||||||
you intend to parse it.
|
you intend to parse it.
|
||||||
|
|
||||||
if (data)
|
if (data)
|
||||||
mydata = ast_strdupa(data);
|
mydata = ast_strdupa(data);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user