diff options
| author | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-11-06 10:59:43 +0100 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-11-08 08:33:38 +0100 |
| commit | 91ead1e9269426209daaefa61837ef555b1738ed (patch) | |
| tree | 8d97d3f0fe32096b8ae895b26b1aeee6fe28d337 /sources/shiboken6/tests | |
| parent | 57cf99afc5fcbc7608790a42471667ed6d7bdea3 (diff) | |
limited api: Remove PyList_GET_ITEM, PyList_SET_ITEM and PyList_GET_SIZE macros
Removing old compatibility macros for the initial limited api
implementation.
Change-Id: Iced149450bd9bda18e43ac0acea0061cdcdb211e
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/tests')
| -rw-r--r-- | sources/shiboken6/tests/samplebinding/typesystem_sample.xml | 6 | ||||
| -rw-r--r-- | sources/shiboken6/tests/smartbinding/typesystem_smart.xml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml index 0e0d884c0..d28a7973b 100644 --- a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml +++ b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml @@ -218,7 +218,7 @@ Py_ssize_t idx = 0; for (const auto &s : %in) { PStr cppItem(s); - PyList_SET_ITEM(%out, idx++, %CONVERTTOPYTHON[PStr](cppItem)); + PyList_SetItem(%out, idx++, %CONVERTTOPYTHON[PStr](cppItem)); } return %out; </native-to-target> @@ -356,7 +356,7 @@ Py_ssize_t idx = 0; for (auto it = %in.cbegin(), end = %in.cend(); it != end; ++it, ++idx) { %INTYPE_0 cppItem(*it); - PyList_SET_ITEM(%out, idx, %CONVERTTOPYTHON[%INTYPE_0](cppItem)); + PyList_SetItem(%out, idx, %CONVERTTOPYTHON[%INTYPE_0](cppItem)); } return %out; </template> @@ -1604,7 +1604,7 @@ <conversion-rule class="target"> PyObject* %out = PyList_New(count); for (int i = 0; i < count; ++i) - PyList_SET_ITEM(%out, i, %CONVERTTOPYTHON[int](%in[i])); + PyList_SetItem(%out, i, %CONVERTTOPYTHON[int](%in[i])); </conversion-rule> </modify-argument> </modify-function> diff --git a/sources/shiboken6/tests/smartbinding/typesystem_smart.xml b/sources/shiboken6/tests/smartbinding/typesystem_smart.xml index 68f12ce6f..f353cd5f1 100644 --- a/sources/shiboken6/tests/smartbinding/typesystem_smart.xml +++ b/sources/shiboken6/tests/smartbinding/typesystem_smart.xml @@ -6,7 +6,7 @@ PyObject *%out = PyList_New(int(%in.size())); int idx = 0; for (const auto &cppItem : %in) - PyList_SET_ITEM(%out, idx++, %CONVERTTOPYTHON[%INTYPE_0](cppItem)); + PyList_SetItem(%out, idx++, %CONVERTTOPYTHON[%INTYPE_0](cppItem)); return %out; </template> <template name="pyseq_to_cpplist_convertion"> |
