[issue46712] Share global string identifiers in deepfreeze

Kumar Aditya report at bugs.python.org
Thu Feb 10 09:27:25 EST 2022


Kumar Aditya <rahuladitya303 at gmail.com> added the comment:

I have refactored generate_global_objects.py, and now instead of hard-coding every identifier manually, it now scans *.c files extracts the identifiers used in it and then generate the header file. This has multiple advantages:

- No need to manually add identifiers, as soon as it is used in a c file it is added to the global identifiers struct.
- It simplifies the codegen a lot.
- Remove the need of special casing certain file for checking now it is just a set of identifiers and auto removes unused global strings.

----------
nosy: +eric.snow

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46712>
_______________________________________


More information about the Python-bugs-list mailing list