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 14:51

I was looking at styles earlier, and I don't see why there are no common/official styles that appeal to me. I was about to say that I use BSD style, but then I noticed that it has Java-style else statements.

>>3,17
Fuck you and fuck your K&R faggot quotes.

void funct(int *yumyums, const std::vector<int> &results) {
    if (yumyums == 0)
        return;

    int result = 0;

    for (int i = *yumyums; i > 0; i--) {
        result = i * i;
        result = i ^ result ^ 0x55;
        if (result > 0x50000000) {
            results.push_back(result);
        }
        else {
            i++;
        }
    }
}

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