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

Redundant blank lines

Name: Anonymous 2013-01-25 4:36


void *foo (void)
{
        void *bar = faggot ();
        if (bar == NULL)
                return NULL;
        return anus (bar);
}


Or


void *foo (void)
{
        void *bar = faggot ();

        if (bar == NULL)
                return NULL;

        return anus (bar);
}


Do you sprinkle your code with redundant blank lines? When is it okay to do it?

Name: Anonymous 2013-01-25 10:39

Here for an example: http://lxr.linux.no/linux+v3.7.4/kernel/exit.c

Check out do_exit written by linus himself. Looks like redundant blank lines has been sprinkled at random. Same goes for multiline comments, some times there is a blank line preceeding it, some times not. Indent is inconsistent too.

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