[vlc-devel] Code style in macosx-modules
Laurent Aimar
fenrir at elivagar.org
Fri Mar 23 15:02:12 CET 2012
On Fri, Mar 23, 2012 at 10:49:57AM +0100, Felix Paul Kühne wrote:
> Hi David,
>
> On 22.03.2012, at 10:58, David Fuhrmann wrote:
>
> > I noticed that we have a mixture of different code styles regarding parenthesis inside the macosx modules.
> > Especially I found:
> >
> > 1) if (bla && (anotherbla))
> > 2) if( bla && ( anotherbla ) )
> > 3) if( bla && ( anotherbla ))
> >
> > I am used to the third style. What is your preference here, felix?
>
> 1) is the old "VLC coding style", which is largely discontinued nowadays.
Euh, 2) and 3) with a typo are the old "VLC coding style" used nearly(?) nowhere else, while 1) is probably K&R.
--
fenrir
More information about the vlc-devel
mailing list