DragonFly BSD
DragonFly submit List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: src/sys/vfs ANSIfication


From: "Andre Nathan" <andre@xxxxxxxxxxxxxxx>
Date: Sun, 28 Mar 2004 00:49:50 -0300 (BRT)

Chris Pressey said:
> Since the whitespace occurs on the same lines that will be changed by
> the K&R->ANSI switch, I'm not sure a second pass is necessary for it.

The second pass was actually meant for other style changes not related to
the ANSIfication, like "sizeof foo" -> "sizeof(foo)" for example, and also
for some stuff that I didn't know what the preferred style was, like

void
foobar(a, b, c, d)
        int  a;        /* blah blah */
        int *b;        /* IN/OUT */
        char *c, *d;
{
        ....
}

Now that you mentioned the first arguments on each line lining up I think
it's more clear how this looks like (the four-space indentation here would
look a bit strange IMO.)


Andre



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]