bpo-39968: Convert extension modules' macros of get_module_state() to inline functions (GH-19017)

17 files changed