public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: asm/unistd.h
@ 2001-04-05 15:23 Steve Grubb
  2001-04-05 15:41 ` asm/unistd.h Bart Trojanowski
  2001-04-05 15:45 ` asm/unistd.h David S. Miller
  0 siblings, 2 replies; 13+ messages in thread
From: Steve Grubb @ 2001-04-05 15:23 UTC (permalink / raw)
  To: linux-kernel

It would seem to me that after hearing how the macros are used in practice,
wouldn't turning them into inline functions be an improvement? This is
something gcc supports, it accomplishes the same thing, and has the added
advantage of type checking.
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC92

Or perhaps type checking macro arguments would be another fertile area for
the Stanford Checker...

Cheers,
Steve Grubb


^ permalink raw reply	[flat|nested] 13+ messages in thread
* asm/unistd.h
@ 2001-04-05 12:58 Sardañons, Eliel
  2001-04-05 13:06 ` asm/unistd.h Bart Trojanowski
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Sardañons, Eliel @ 2001-04-05 12:58 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

I'm taking a look at the linux code and I don't understand how do you
programm...mmm (?) may be i'm a stupid why in include/asm/unistd.h in some
macros you use this:

do {
...
} while (0)

Thanks in advance.

Eliel C. Sardanons

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

end of thread, other threads:[~2001-04-05 17:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-05 15:23 asm/unistd.h Steve Grubb
2001-04-05 15:41 ` asm/unistd.h Bart Trojanowski
2001-04-05 15:45 ` asm/unistd.h David S. Miller
  -- strict thread matches above, loose matches on Subject: below --
2001-04-05 12:58 asm/unistd.h Sardañons, Eliel
2001-04-05 13:06 ` asm/unistd.h Bart Trojanowski
2001-04-05 13:12   ` asm/unistd.h Tim Waugh
2001-04-05 14:26   ` asm/unistd.h Joseph Carter
2001-04-05 14:35     ` asm/unistd.h Bart Trojanowski
2001-04-05 14:35     ` asm/unistd.h Stephen Thomas
2001-04-05 14:45     ` asm/unistd.h Andreas Schwab
2001-04-05 17:38       ` asm/unistd.h J . A . Magallon
2001-04-05 13:07 ` asm/unistd.h David S. Miller
2001-04-05 13:13 ` asm/unistd.h Ben Collins

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