lkml.org 
[lkml]   [2003]   [Jun]   [1]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSun, 1 Jun 2003 06:26:26 -0700
FromLarry McVoy <>
SubjectRe: Question about style when converting from K&R to ANSI C.
On Sat, May 31, 2003 at 11:56:16PM -0600, Steven Cole wrote:
> Proposed conversion:
> 
> int foo(void)
> {
>    	/* body here */
> }	

Sometimes it is nice to be able to see function names with a 

	grep '^[a-zA-Z].*(' *.c

which is why I've always preferred

int
foo(void)
{
	/* body here */
}	
Is there some reason that I'm missing that the kernel folks like it the other
way?  
-- 
---
Larry McVoy              lm at bitmover.com          http://www.bitmover.com/lm
-
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-03-22 12:35    [W:2.163 / U:0.580 seconds]
©2003-2008 Jasper Spaans