pypdfium2-team / ctypesgen

Wrapper generator for Python ctypes
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Position-precise imports of linked modules? #8

Closed mara004 closed 5 months ago

mara004 commented 5 months ago

Consider passing -dI to the C pre-processor to preserve include statements, in order to later honor the position when translating to an import of a linked module, intending to address the following known limitation (quote from Readme):

Linked modules are naively prioritized in dependency resolver and conflicting names handler, i.e. intentional overrides are ignored. The position of includes is not honored; ctypesgen always imports linked modules at top level.

mara004 commented 5 months ago

Closing as CC #4. Somewhat far-fetched / low-prio.