[Xcb] [PATCH v2] c_client.py: avoid field name clash with C++ 'explicit' keyword

Keith Packard keithp at keithp.com
Mon Dec 28 11:14:01 PST 2015


Klemens Baum <klemensbaum at gmail.com> writes:

> The generated code was causing compilation errors when xcb/xkb.h
> is included in a C++ code base.
>
> To avoid breaking the API for C users, the unprefixed field names
> are provided as alternative names via an anonymous union.

Why not just leave the C names alone and use the new names when included
in a c++ file? You've already accepted a different API for C/C++, after all.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20151228/de4f4650/attachment.sig>


More information about the Xcb mailing list