mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcapi (GH-142833)
This commit is contained in:
parent
568a819f67
commit
7d81eab923
@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m)
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyABIInfo_VAR(abi_info);
|
||||
|
||||
static PyModuleDef_Slot _testcapi_slots[] = {
|
||||
{Py_mod_abi, &abi_info},
|
||||
{Py_mod_exec, _testcapi_exec},
|
||||
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
|
||||
@ -2696,7 +2696,10 @@ module_exec(PyObject *module)
|
||||
return 0;
|
||||
}
|
||||
|
||||
PyABIInfo_VAR(abi_info);
|
||||
|
||||
static struct PyModuleDef_Slot module_slots[] = {
|
||||
{Py_mod_abi, &abi_info},
|
||||
{Py_mod_exec, module_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
|
||||
|
||||
@ -76,6 +76,7 @@ _OTHER_SUPPORTED_TYPES = {
|
||||
'PyBufferProcs',
|
||||
'PyStructSequence_Field[]',
|
||||
'PyStructSequence_Desc',
|
||||
'PyABIInfo',
|
||||
}
|
||||
|
||||
# XXX We should normalize all cases to a single name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user