From: Aron Griffis Subject: question regarding gnu-isms Date: Thu, 27 Apr 2006 18:36:41 -0400 Message-ID: <20060427223641.GG3572@vino.zko.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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