[asterisk-dev] few more standards for codelines

Clod Patry cpatry at gmail.com
Mon Apr 16 21:45:37 MST 2007


Just as a standard, to get the Bug codelines standard:

                case ('*'):
                        fn = "digits/star";
                        break;
                case ('#'):

could be
                case '*':
                        fn = "digits/star";
                        break;
                case '#':

since all the ( ) are useless in the switch statement.


and there's so much:
num = num - 60;

which could be:
num -= 60;

that one makes code cleaner, specialy when using a lot of
num = num % 10; and all math combination.


whatcha think?



-- 
Clod Patry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070416/27572b52/attachment.htm


More information about the asterisk-dev mailing list