[Xcb-commit] libxcb: src

Christian Linhart clinhart at kemper.freedesktop.org
Sun Mar 15 03:53:50 PDT 2015


 src/c_client.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit ec435aebd6ed0523de2d341e6aff5ae66f230b10
Author: Ran Benita <ran234 at gmail.com>
Date:   Sun Oct 12 21:58:15 2014 +0300

    c_client.py: use C99 initializers instead of comments
    
    Signed-off-by: Ran Benita <ran234 at gmail.com>
    Reviewed-by: Christian Linhart <chris at demorecorder.com>

diff --git a/src/c_client.py b/src/c_client.py
index d76bb48..3dc4104 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -2280,10 +2280,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('')
 


More information about the xcb-commit mailing list