[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] reserved words in tmem.h


  • To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Fri, 10 Dec 2010 07:18:46 +0000
  • Cc:
  • Delivery-date: Thu, 09 Dec 2010 23:20:02 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=KFw24/L0FQ/S+lTASW0F/OWhLJ20mR2t+2f5R0NaapfXzWpWPXYqNFTF1Z1u/S/+9P Jm9jmii8wQKEoBT8C3/Hc8sNUH2KJJlN80GQqIGFFKMSAOdCqZf/1KvgpOS9NYrt61b9 3MOTmhj9Ih/TIzNAQ5QcGjaTiAg3N0oZ9E2Ys=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcuYAc3/8uqzEc2bRxOaoj3DrqXn2gAOK2mT
  • Thread-topic: [Xen-devel] reserved words in tmem.h

Oh yes, we'll have to change the name.

 -- Keir

On 10/12/2010 00:33, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> xen/include/public/tmem.h uses 'new' as the name of a structure, which
> is a reserved word under C++. tmem.h is included by xenctrl.h, which
> prevents anyone writing a C++ userspace app using gntdev and friends
> without rolling their own modifications to include files.
> 
> new is a reserved word under C++ but not C (C99 at least), but I still
> think it's bad form to use it in an include file that could legitimately
> be used by a C++ application.
> 
> Does anyone else see this as a problem?
> 
> Thanks
> 
> James
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.