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

[Xen-devel] reserved words in tmem.h



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