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

Josh Triplett josh at joshtriplett.org
Sun Dec 27 07:09:26 PST 2015


On Fri, Dec 25, 2015 at 07:28:20PM +0100, Klemens Baum wrote:
> This was causing compilation errors when xcb/xkb.h is included
> in a C++ code base.

This change would cause an API break for xcb-xkb, wouldn't it?  The ABI
would remain compatible, but code written for the previous API wouldn't
compile.

> --- a/src/c_client.py
> +++ b/src/c_client.py
> @@ -17,9 +17,10 @@ _cname_special_cases = {'DECnet':'decnet'}
>  
>  _extension_special_cases = ['XPrint', 'XCMisc', 'BigRequests']
>  
> -_cplusplus_annoyances = {'class' : '_class',
> -                         'new'   : '_new',
> -                         'delete': '_delete'}
> +_cplusplus_annoyances = {'class'   : '_class',
> +                         'new'     : '_new',
> +                         'delete'  : '_delete',
> +                         'explicit': '_explicit'}
>  _c_keywords = {'default' : '_default'}
>  
>  _hlines = []
> -- 
> 2.4.6
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list