Re: [patch] ipc/msg.c: clean up coding style

Ingo Molnar
2006-07-28T08:59:21Z

* James Morris <jmorris@namei.org> wrote:

> On Thu, 27 Jul 2006, Ingo Molnar wrote:
>
> > > Let's not go BSD way.
> >
> > again, lets not have overlong line 80 prototypes.
>
> I thought Linus gave his blessing for long lines for prototypes (up to
> 120 chars?), to make it easier to grep the code for function
> prototypes.

i think that's a tool issue. If you need multiline grep, use the 'mg'
perl-script from:

http://freshmeat.net/projects/mg_multi_line_grep/

for example, to see all syscall prototypes in kernel/*.c:

mg -e "asmlinkage.*\n*.*sys.*\n*.*{" kernel/*.c

Ingo