c_client.py: don't add /* <name> */ before references to 'S'
The name can be understood from the type of S already. For examples, look for 'S->' in xkb.c or xinput.c. Signed-off-by: Ran Benita <ran234@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com> Reviewed-by: Rémi Cardona <remi@gentoo.org>
This commit is contained in:
parent
17f9bda6c2
commit
f9f925107e
|
@ -1833,8 +1833,7 @@ def _c_accessors_list(self, field):
|
||||||
fields.update(_c_helper_field_mapping(toplevel_switch, [('S', '->', toplevel_switch)], flat=True))
|
fields.update(_c_helper_field_mapping(toplevel_switch, [('S', '->', toplevel_switch)], flat=True))
|
||||||
|
|
||||||
# initialize prefix for everything "below" S
|
# initialize prefix for everything "below" S
|
||||||
prefix_str = '/* %s */ S' % toplevel_switch.name[-1]
|
prefix = [('S', '->', toplevel_switch)]
|
||||||
prefix = [(prefix_str, '->', toplevel_switch)]
|
|
||||||
|
|
||||||
# look for fields in the remaining containers
|
# look for fields in the remaining containers
|
||||||
for p in parents[2:] + [self]:
|
for p in parents[2:] + [self]:
|
||||||
|
@ -2724,8 +2723,7 @@ def _man_request(self, name, void, aux):
|
||||||
fields.update(_c_helper_field_mapping(toplevel_switch, [('S', '->', toplevel_switch)], flat=True))
|
fields.update(_c_helper_field_mapping(toplevel_switch, [('S', '->', toplevel_switch)], flat=True))
|
||||||
|
|
||||||
# initialize prefix for everything "below" S
|
# initialize prefix for everything "below" S
|
||||||
prefix_str = '/* %s */ S' % toplevel_switch.name[-1]
|
prefix = [('S', '->', toplevel_switch)]
|
||||||
prefix = [(prefix_str, '->', toplevel_switch)]
|
|
||||||
|
|
||||||
# look for fields in the remaining containers
|
# look for fields in the remaining containers
|
||||||
for p in parents[2:] + [self]:
|
for p in parents[2:] + [self]:
|
||||||
|
|
Loading…
Reference in New Issue