[vlc-commits] commit: ncurses: cosmetics ( Rafaël Carré )
    git at videolan.org 
    git at videolan.org
       
    Tue Oct 26 14:03:36 CEST 2010
    
    
  
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Oct 25 21:05:15 2010 +0200| [f78010cfdef42268d70c3a259bc1569838729302] | committer: Rafaël Carré 
ncurses: cosmetics
Remove braces around a single statement
Merge some comparisons
"( a )"             -> "(a)"
"if(x)"             -> "if (x)"
"if (x == NULL)"    -> "if (!x)"
"if (x != NULL)"    -> "if (x)"
ReadDir: Invert logic to have less indentation:
{
    if( a )
        x();
    else
        y();
}
====>
{
    if( !a )
    {
        y();
        return;
    }
    x();
}
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f78010cfdef42268d70c3a259bc1569838729302
---
 modules/gui/ncurses.c | 1925 +++++++++++++++++++++++--------------------------
 1 files changed, 898 insertions(+), 1027 deletions(-)
Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=f78010cfdef42268d70c3a259bc1569838729302
    
    
More information about the vlc-commits
mailing list