Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpmkT-0004Ce-KS for qemu-devel@nongnu.org; Fri, 03 Apr 2009 13:00:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpmkR-0004By-Pk for qemu-devel@nongnu.org; Fri, 03 Apr 2009 13:00:09 -0400 Received: from [199.232.76.173] (port=35075 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpmkR-0004Bm-9O for qemu-devel@nongnu.org; Fri, 03 Apr 2009 13:00:07 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:56373 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LpmkP-0002vc-LB for qemu-devel@nongnu.org; Fri, 03 Apr 2009 13:00:07 -0400 Date: Fri, 3 Apr 2009 21:00:00 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] [RFC] Introduce module API to QEMU In-Reply-To: <49D60814.9020703@codemonkey.ws> Message-ID: References: <1238724755-15929-1-git-send-email-aliguori@us.ibm.com> <49D58424.7050605@us.ibm.com> <49D60814.9020703@codemonkey.ws> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paul Brook On Fri, 3 Apr 2009, Anthony Liguori wrote: > malc wrote: > > 4.1.2 comes from C90 > > > > C99 would be a more reasonable thing to quote from since it updates C89. Sigh, i provided c&v for both. > > > > So this is exactly the sort of thing that the standard is there to protect > > > :-) > > > > > > > No. Those are reserved for _any_ use. For example, 6.2.5 states: > > > > 31) An implementation may define new keywords that provide > > alternative ways to designate a basic (or any other) > > type; this does not violate the requirement that all > > basic types be different. Implementation-defined > > keywords shall have the form of an identifier reserved > > for any use as described in 7.1.3. > > > > I still think you're missing the fact that this is a variable that's > provided by the compiler. It's a GCC extension in the same way > __attribute__ is. The reason we have to declare the variables is > because it's actually provided by the linker so GCC the front-end has no > knowledge of these variables existence. > > This isn't standard C99 but it certainly doesn't violate C99 either. You are using _identifier_ whose name violates 7.1.3, full stop, you can not do that in _any_ context. -- mailto:av1474@comtv.ru