On Sat Feb 8 20:41:10 2025 +0000, Jacek Caban wrote:
I split it differently. I also noticed that I messed up previous version in some cases (mixed importer with imported module), that should be fixed in the new version. Here is a version that with asserts: https://gitlab.winehq.org/jacek/wine/-/merge_requests/18. I'm not sure what's the point of 3, a simple grep should be enough to ensure that there are no users (or, once it's removed, compiler verifies that for us).
FYI, I'm testing with https://gitlab.winehq.org/iamahuman/wine/-/merge_requests/20, which (hopefully) has more extensive checks.