MatthieuDartiailh / pyclibrary

C parser and ctypes automation for python
http://pyclibrary.readthedocs.org
MIT License
66 stars 29 forks source link

Update c_parser.py for parsing nested structures #55

Closed CTecGermany closed 2 months ago

CTecGermany commented 3 years ago

I propose this change in order to be able to correctly parse nested structs and assign the correct identifies. This corrolates to this issue : https://github.com/MatthieuDartiailh/pyclibrary/issues/54#issue-1023755883

MatthieuDartiailh commented 3 years ago

This looks interesting. Could you add some test for it ?

CTecGermany commented 3 years ago

Hi, Sorry i was just very busy with other projects and havent found time to deal with this issue. What kind of test would you propose ?

MatthieuDartiailh commented 3 years ago

You could add a nested structure in tests/headers/struct.h and add a check in tests/test_parser.py to validate that the proper information are extracted.

MatthieuDartiailh commented 2 months ago

Superseded by #76