GeezerVison is showing github.com — gh-142225: Add PyABIInfo_VAR to to _testcapimodule & _testinternalcap… · python/cpython@7d81eab
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Modules/_testcapimodule.c +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3523,7 +3523,10 @@ _testcapi_exec(PyObject *m) | 3523 | 3523 | return 0; | 3524 | 3524 | } | 3525 | 3525 |
| | 3526 | +PyABIInfo_VAR(abi_info); | | 3527 | + | 3526 | 3528 | static PyModuleDef_Slot _testcapi_slots[] = { | | 3529 | + {Py_mod_abi, &abi_info}, | 3527 | 3530 | {Py_mod_exec, _testcapi_exec}, | 3528 | 3531 | {Py_mod_gil, Py_MOD_GIL_NOT_USED}, | 3529 | 3532 | {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED}, | |
Collapse file Copy file name to clipboardExpand all lines: Modules/_testinternalcapi.c +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2696,7 +2696,10 @@ module_exec(PyObject *module) | 2696 | 2696 | return 0; | 2697 | 2697 | } | 2698 | 2698 |
| | 2699 | +PyABIInfo_VAR(abi_info); | | 2700 | + | 2699 | 2701 | static struct PyModuleDef_Slot module_slots[] = { | | 2702 | + {Py_mod_abi, &abi_info}, | 2700 | 2703 | {Py_mod_exec, module_exec}, | 2701 | 2704 | {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED}, | 2702 | 2705 | {Py_mod_gil, Py_MOD_GIL_NOT_USED}, | |
Collapse file Copy file name to clipboardExpand all lines: Tools/c-analyzer/cpython/_analyzer.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 76 | 76 | 'PyBufferProcs', | 77 | 77 | 'PyStructSequence_Field[]', | 78 | 78 | 'PyStructSequence_Desc', | | 79 | + 'PyABIInfo', | 79 | 80 | } | 80 | 81 |
| 81 | 82 | # XXX We should normalize all cases to a single name, | |
|