[MPlayer-dev-eng] the great reformatting

Ingo Brückl ib at wupperonline.de
Tue Feb 15 12:30:33 CET 2011


I wrote on Tue, 15 Feb 2011 11:06:48 +0100:

> What about new lines before and after control > statements, i.e.:

>   a = b;
>   c = d;
>   if (a == c) {
>       foo();
>       bar();
>   }
>   while (b == d) {
>       bar();
>       foo();
>   }
>   x = a;
>   y = b;

> vs. (favoured?):

>   a = b;
>   c = d;

>   if (a == c) {
>       foo();
>       bar();
>   }

>   while (b == d) {
>       bar();
>       foo();
>   }

>   x = a;
>   y = b;

No. I withdraw this. This would destroy code like:

  a = b;
  c = d;

  if (a == b)
      foo();
  if (a == c)
      bar();
  if (b == d)
      bar();

  b = c;
  d = a;

Ingo


More information about the MPlayer-dev-eng mailing list