[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: asm/unistd.h
From: Joseph Carter <knghtbrd () debian ! org>
Date: 2001-04-05 14:26:28
[Download RAW message or body]
On Thu, Apr 05, 2001 at 09:06:20AM -0400, Bart Trojanowski wrote:
> So you ask: "why not just use a { ... } to define a macro". I don't
> remember the case for this but I know it's there. It has to do with a
> complicated if/else structure where a simple {} breaks.
This doesn't follow in my mind. I can't think of a case where a { ... }
would fail, but a do { ... } while (0) would succeed. The former would
also save a few keystrokes.
--=20
Joseph Carter <knghtbrd@debian.org> Free software developer
// Minor lesson: don't fuck about with something you don't fully understand
-- the dosdoom source code
[Attachment #3 (application/pgp-signature)]
-
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic