Re: CodingStyle Problem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert P. J. Day
Date: Friday, December 10, 2010 - 10:53 pm

On Sat, 11 Dec 2010, HarryWei wrote:


  the advantage to the form

static int
function-name

is that, if you're looking for the actual function *definition* in the
file, having the function name at the start of a new line means you
can search for it with the pattern "^function-name" so that you don't
have to wade through all of the invocations of that function.

  i like that style; others claim that with proper cross-referencers
like cscope, doing that is redundant.  as far as i know, the kernel
coding style doesn't take a position on that, but i'm willing to be
corrected.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
CodingStyle Problem, HarryWei, (Fri Dec 10, 10:36 pm)
Re: CodingStyle Problem, Robert P. J. Day, (Fri Dec 10, 10:53 pm)