Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How do you indent?

Name: Anonymous 2009-07-29 12:23

What is your preferred style of code indentation? I personally tend to use the GNU style indent.


static char *
concat (char *s1, char *s2)
{
    while (x == y)
      {
        something ();
        somethingelse ();
      }
    finalthing ();
}

Name: Anonymous 2009-07-29 12:45

(modified?) Allman style, two spaces, without omitting braces even in single statements, and the three-line else. Yeah, call it waste of space, I don't give a flying Philadelphia fuck.


void frozen(int n)
{
  int i, j;

  for(i = 0; i < n; i++)
    for(j = 0; j < n; j++)
    {
      if(i==j)
      {
        foo(i, j);
      }
      else
      {
        bar(i, j);
      }
    }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List