Andrew Eikum aeikum@codeweavers.com writes:
An array would work, especially for the static structures that are used now, but these cleanup patches were made with the goal of merging the typelib-reading and typelib-creation interfaces in mind. Specifically, implementing the typelib-creation interfaces using the current data structures in typelib.c. Given the function ICreateTypeLib::CreateTypeInfo(), a list seems more appropriate to me.
If a list is really more appropriate for creation, then they shouldn't share the structure. The reading API is clearly index-based, a list isn't appropriate for that.