Skip to content

Commit 7d81eab

Browse files
authored
gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi (GH-142833)
1 parent 568a819 commit 7d81eab

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Modules/_testcapimodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m)
35233523
return 0;
35243524
}
35253525

3526+
PyABIInfo_VAR(abi_info);
3527+
35263528
static PyModuleDef_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},

Modules/_testinternalcapi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,10 @@ module_exec(PyObject *module)
26962696
return 0;
26972697
}
26982698

2699+
PyABIInfo_VAR(abi_info);
2700+
26992701
static struct PyModuleDef_Slot module_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},

Tools/c-analyzer/cpython/_analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
'PyBufferProcs',
7777
'PyStructSequence_Field[]',
7878
'PyStructSequence_Desc',
79+
'PyABIInfo',
7980
}
8081

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

0 commit comments

Comments
 (0)