[Xcb] [PATCH libxcb 13/18] c_client.py: use C99 initializers instead of comments

Ran Benita ran234 at gmail.com
Sun Oct 12 11:58:15 PDT 2014


Signed-off-by: Ran Benita <ran234 at gmail.com>
---
 src/c_client.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/c_client.py b/src/c_client.py
index eab4006..1c77bb0 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1948,10 +1948,10 @@ def _c_request_helper(self, name, cookie_type, void, regular, aux=False, reply_f
 
     _c('{')
     _c('    static const xcb_protocol_request_t xcb_req = {')
-    _c('        /* count */ %d,', count)
-    _c('        /* ext */ %s,', func_ext_global)
-    _c('        /* opcode */ %s,', self.c_request_name.upper())
-    _c('        /* isvoid */ %d', 1 if void else 0)
+    _c('        .count = %d,', count)
+    _c('        .ext = %s,', func_ext_global)
+    _c('        .opcode = %s,', self.c_request_name.upper())
+    _c('        .isvoid = %d', 1 if void else 0)
     _c('    };')
     _c('')
 
-- 
2.1.2



More information about the Xcb mailing list