[MPlayer-dev-eng] [PATCH] view stereoscopic videos

Ivo ivop at euronet.nl
Fri Jan 29 19:23:49 CET 2010


On Friday 29 January 2010, 13:17:03, Uoti Urpala wrote:
> On Fri, 2010-01-29 at 10:49 +0100, Gordon Schmidt wrote:
> > This K&R style seems everything but logical to me. Why do i have to
> > put the { on the next line for function declarations, but not for
> > control statements?
>
> This makes function definitions (declarations do not have braces) more
> visually distinct. Also one extra line for the brace per function
> definition is OK, but adding an extra line per each control statement
> would add a lot of extra lines to some code.

The original reason was that old-style function declarations looked like 
this:

foo(a, b, c)
	float a;
	short c;
{
 /* .. */
}

That's why the opening brace was on a line of its own. This is obsolete 
since ANSI C.

--Ivo



More information about the MPlayer-dev-eng mailing list