[Xcb-commit] libxcb: src
Christian Linhart
clinhart at kemper.freedesktop.org
Sun Mar 15 03:23:15 PDT 2015
src/c_client.py | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
New commits:
commit 0ab52cbcc630ff8ddfa6f6b245c6b3071867b291
Author: Ran Benita <ran234 at gmail.com>
Date: Sun Oct 12 21:58:08 2014 +0300
c_client.py: fix indentation
(Also remove unnecessary parens around the condition).
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 d288e80..db19c27 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1808,14 +1808,13 @@ def _c_accessors_list(self, field):
'''
def get_align_pad(field):
- prev = field.prev_varsized_field
- prev_prev = field.prev_varsized_field.prev_varsized_field
-
- if (prev.type.is_pad and prev.type.align > 0 and prev_prev is not None):
- return (prev_prev, '((-prev.index) & (%d - 1))' % prev.type.align)
- else:
- return (prev, None)
+ prev = field.prev_varsized_field
+ prev_prev = field.prev_varsized_field.prev_varsized_field
+ if prev.type.is_pad and prev.type.align > 0 and prev_prev is not None:
+ return (prev_prev, '((-prev.index) & (%d - 1))' % prev.type.align)
+ else:
+ return (prev, None)
list = field.type
c_type = self.c_type
More information about the xcb-commit
mailing list