Fix _c_helper_absolute_name for fields which can only be
accessed with an iterator function.
These are lists with var-sized structs as members.
Message-ID: <
1409743361-466-2-git-send-email-chris@demorecorder.com>
Patch-Thread-Subject: [Xcb] xinput: make ListInputDevices work, sumof with nested expr, ...
Patch-Set: ListInputDevices
Patch-Number: libxcb 2/6
Patch-Version: V1
Signed-off-by: Christian Linhart <chris@DemoRecorder.com>
)
)
):
- prefix_str = field.c_accessor_name + "(" + prefix_str_without_lastsep + ")";
+ if field.type.is_list and not field.type.member.fixed_size():
+ #only accessible by iterator
+ prefix_str = field.c_iterator_name + "(" + prefix_str_without_lastsep + ")";
+ else:
+ #only accessible by access function
+ prefix_str = field.c_accessor_name + "(" + prefix_str_without_lastsep + ")";
return prefix_str
# _c_absolute_name