WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Keir Fraser <keir@xxxxxxx>, James Harper <james.harper@xxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] reserved words in tmem.h
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Fri, 10 Dec 2010 12:10:02 -0800 (PST)
Cc:
Delivery-date: Fri, 10 Dec 2010 12:12:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C927BCD5.C5C8%keir@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D01BB8938@trantor C927BCD5.C5C8%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I certainly don't object and the name Keir chose is fine but,
since this is currently a guest-kernel-only interface definition,
I'd be VERY interested to hear who might be using it in C++.
Is there a guest OS written in C++?  Or is someone trying to
use tmem from user-land?  Or...??

> -----Original Message-----
> From: Keir Fraser [mailto:keir@xxxxxxx]
> Sent: Friday, December 10, 2010 4:18 AM
> To: James Harper; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] reserved words in tmem.h
> 
> I fixed this in xen-unstable and I will backport to xen-4.0.
> 
>  -- 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

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

<Prev in Thread] Current Thread [Next in Thread>