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

From: Ingo Molnar
Date: Fri Jul 28 2006 - 04:57:11 EST



* James Morris <jmorris@xxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/