Re: asm/unistd.h

David S. Miller (davem@redhat.com)
Thu, 5 Apr 2001 06:07:30 -0700 (PDT)


Sardaņons@pizda.ninka.net, Eliel writes:
> 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:

Two reasons:

1) Empty statements give a warning from the compiler so
this is why you see "#define FOO do { } while(0)"
2) It gives you a basic block in which to declare local
variables.

Later,
David S. Miller
davem@redhat.com
-
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/