trolldbois / ctypeslib

Generate python ctypes classes from C headers. Requires LLVM clang
http://trolldbois.blogspot.com/search?q=ctypeslib
MIT License
218 stars 61 forks source link

Continuation of #117 desired functionality #118

Open RobertHerreraEECS opened 1 year ago

RobertHerreraEECS commented 1 year ago

Modified get_unique_name to also account for a the parent node's typedef name, if one exists. This change is a continuation to #117 where an edge cases arises if more than one level of anonymous typedef'd structs are embedded inside each other.

trolldbois commented 1 year ago

@RobertHerreraEECS I really want to merge your pull request. But could you make up a unit test that would trigger edgecases you mention ?