lkml.org 
[lkml]   [2005]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][RFC] Linux VM hooks for advanced RDMA NICs
From
Date
On Tue, 2005-04-26 at 13:13 -0400, Lee Revell wrote:
> On Tue, 2005-04-26 at 18:57 +0200, Jesper Juhl wrote:
> > >
> > > +static inline void
> > > +ioproc_release(struct mm_struct *mm)
> > > +{
> >
> > Return types on same line as function name makes grep'ing a lot
> > easier/nicer.
> >
> > Here's the example from Documentation/CodingStyle :
> >
> > int function(int x)
> > {
>
> How so? I never understood the reasons. This makes it easier to grep
> for everything that returns int. But you make the common case (what
> file is function() defined in?) harder.

Not exactly. I used the 2-lines style for a while, and changed overtime
and now can't stand anything but the one line style :)

I recommend you read the mailing list archives for linus comments on
this issue btw.

Ben.


-
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/

\
 
 \ /
  Last update: 2005-04-29 10:26    [W:0.126 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site