gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcap… · python/cpython@7d81eab

GitHub

Original file line numberDiff line numberDiff line change@@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m)

35233523return0;

35243524}

352535253526+PyABIInfo_VAR(abi_info);

3527+35263528staticPyModuleDef_Slot_testcapi_slots[] = {

3529+ {Py_mod_abi, &abi_info},

35273530 {Py_mod_exec, _testcapi_exec},

35283531 {Py_mod_gil, Py_MOD_GIL_NOT_USED},

35293532 {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},

Original file line numberDiff line numberDiff line change@@ -2696,7 +2696,10 @@ module_exec(PyObject *module)

26962696return0;

26972697}

269826982699+PyABIInfo_VAR(abi_info);

2700+26992701staticstructPyModuleDef_Slotmodule_slots[] = {

2702+ {Py_mod_abi, &abi_info},

27002703 {Py_mod_exec, module_exec},

27012704 {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},

27022705 {Py_mod_gil, Py_MOD_GIL_NOT_USED},

Original file line numberDiff line numberDiff line change@@ -76,6 +76,7 @@

7676'PyBufferProcs',

7777'PyStructSequence_Field[]',

7878'PyStructSequence_Desc',

79+'PyABIInfo',

7980}

80818182# XXX We should normalize all cases to a single name,