public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Coding style: do_this(a,b) vs. do_this(a, b)
@ 2004-08-17 10:38 Pavel Machek
  2004-08-17 21:09 ` Fao, Sean
  2004-08-17 21:59 ` Frank van Maarseveen
  0 siblings, 2 replies; 10+ messages in thread
From: Pavel Machek @ 2004-08-17 10:38 UTC (permalink / raw)
  To: kernel list, Andrew Morton

Hi!

Coding style document is not consistent with itself on whether there
should be space after ","... This makes it standartize on ", " option.

								Pavel

--- tmp/linux/Documentation/CodingStyle	2004-05-20 23:08:01.000000000 +0200
+++ linux/Documentation/CodingStyle	2004-06-06 00:27:11.000000000 +0200
@@ -356,11 +356,11 @@
 
 Macros with multiple statements should be enclosed in a do - while block:
 
-#define macrofun(a,b,c) 			\
+#define macrofun(a, b, c) 			\
 	do {					\
 		if (a == 5)			\
-			do_this(b,c);		\
-	} while (0)
+			do_this(b, c);		\
+	} while(0)
 
 Things to avoid when using macros:
 

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Coding style: do_this(a,b) vs. do_this(a, b)
@ 2004-08-17 11:51 Albert Cahalan
  2004-08-17 16:07 ` Alexander Nyberg
  2004-08-17 16:40 ` Pavel Machek
  0 siblings, 2 replies; 10+ messages in thread
From: Albert Cahalan @ 2004-08-17 11:51 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: pavel

> Coding style document is not consistent with
> itself on whether there should be space after
> ","... This makes it standartize on ", " option.

You can read it both ways, right? It's easy.
I can't even see the difference unless I'm
looking for it.

We don't need any more bureaucracy.

do_this(a,b);
do_this(a, b);
do_this (a,b);
do_this (a, b);

I can read them all. I might notice the space in
front of the '(', but I might not. Even putting a
space in front of the ';' isn't unreadable.

People will pass laws until they are choked off,
unable to move without being in violation of some
silly little thing.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-08-17 22:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-17 10:38 Coding style: do_this(a,b) vs. do_this(a, b) Pavel Machek
2004-08-17 21:09 ` Fao, Sean
2004-08-17 21:14   ` Pavel Machek
2004-08-17 21:59 ` Frank van Maarseveen
2004-08-17 22:29   ` Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2004-08-17 11:51 Albert Cahalan
2004-08-17 16:07 ` Alexander Nyberg
2004-08-17 16:40 ` Pavel Machek
2004-08-17 17:07   ` Albert Cahalan
2004-08-17 20:00     ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox