All of lore.kernel.org
 help / color / mirror / Atom feed
* question regarding gnu-isms
@ 2006-04-27 22:36 Aron Griffis
  2006-04-27 23:04 ` Anthony Liguori
  2006-04-28  5:09 ` Andi Kleen
  0 siblings, 2 replies; 9+ messages in thread
From: Aron Griffis @ 2006-04-27 22:36 UTC (permalink / raw)
  To: xen-devel

I understand most of the gcc extensions that I find in xen, for
example ({...}) in a #define.  However I've come across a couple that
I'm not familiar with.  Does somebody mind explaining the point of
these?

from linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h:

    #define __pte_ma(_x)    ((pte_t) {(_x)})

    What's the point of the braces here?

same file:

    #define xen_create_contiguous_region(vstart, order, address_bits) ({0;})

    This looks like the usual ({...}) construction but seems
    pointless.  The nearest explanation I could gather for this
    applies only to C++...  surely I'm missing something. :-)

Thanks,
Aron

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

end of thread, other threads:[~2006-04-29  1:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27 22:36 question regarding gnu-isms Aron Griffis
2006-04-27 23:04 ` Anthony Liguori
2006-04-27 23:08   ` Mark Williamson
2006-04-27 23:41     ` Anthony Liguori
2006-04-27 23:41       ` Mark Williamson
2006-04-27 23:16   ` Aron Griffis
2006-04-27 23:44     ` Anthony Liguori
2006-04-29  1:44       ` Aron Griffis
2006-04-28  5:09 ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.