[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxc, libxenstore: make the headers C++-friendly
However, most well-behaved C libraries do that for all their headers.xen/include/public is is not a library, it's the C API (and ABI) of the hypervisor. By all means make libxc/libxg/libxl C++-friendly if you like, but please leave the hypervisor interface alone. I understand your position, however I should point out that, if done properly, making even all the headers in Xen C++-friendly would have no impact whatsoever on anything in Xen. If you compile them with a C compiler (i.e. gcc instead of g++), the 'extern "C"' statements simply don't exist (because then __cplusplus is not #defined). As for the rest, all that's required is to not use C++ keywords as variable names, and to be careful to define something before typedef-ing it. That's absolutely all there is to it. Thank you for your time and comments, Razvan Cojocaru _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |