summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-12 21:58:15 +0300
committerChristian Linhart <chris@demorecorder.com>2015-03-15 11:52:38 +0100
commitec435aebd6ed0523de2d341e6aff5ae66f230b10 (patch)
tree2dc8cbbd6994a7cb8180e61074a303eb1698cfd4
parent89498d1d450d0e6e476f6b24908ecae857863386 (diff)
c_client.py: use C99 initializers instead of comments
Signed-off-by: Ran Benita <ran234@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com>
-rw-r--r--src/c_client.py8
1 files changed, 4 insertions, 4 deletions
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('')