Re: Question about style when converting from K&R to ANSI C.

Jonathan Lundell (linux@lundell-bros.com)
Sun, 1 Jun 2003 09:04:22 -0700


At 7:06am -0700 6/1/03, Larry McVoy wrote:
>It may be just what you are used to but I also find that when reading lots
>of code it is nice to have it look like
>
>return type
>function_name(args)
>
>because the function_name() stands out more, it's always at the left side so
>I tend to parse it a little more quickly.

The reason I've liked this format is that it gives me a quick and
universal way to find *specific* functions with vi or grep, by
searching for "^function_name(".

I'm less concerned with global function searches; there I don't mind
the overhead of more sophisticated tools.

When we're done with this thread, perhaps we can return to endian arguments....

-- 
/Jonathan Lundell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/