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

Klemens Baum klemensbaum at gmail.com
Fri Dec 25 10:28:20 PST 2015


This was causing compilation errors when xcb/xkb.h is included
in a C++ code base.
---
 src/c_client.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/c_client.py b/src/c_client.py
index c38b434..e4c3f89 100644
--- 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



More information about the Xcb mailing list