python 3.8.2 compile: add tp_print to PyTypeObject
authorJustin Luth <justin_luth@sil.org>
Sat, 22 Feb 2020 04:30:15 +0000 (07:30 +0300)
committerRene Engelhard <rene@debian.org>
Fri, 20 Mar 2020 15:23:39 +0000 (15:23 +0000)
I couldn't find this documented on the Internet though,
as the 3.9 and 3.8.2rc documentation didn't mention it
as an added item...

I'm using Ubuntu 20.04 alpha with python3 --version
Python 3.8.2rc1

This fixes pyuno/source/module/pyuno.cxx:1689:1: error:
missing initializer for member â€˜_typeobject::tp_print’
[-Werror=missing-field-initializers]

Change-Id: Idec5720050572b34628267cd94557dabf7edbf3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89247
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Gbp-Pq: Name python3.8.2.diff

pyuno/source/module/pyuno.cxx
pyuno/source/module/pyuno_callable.cxx
pyuno/source/module/pyuno_iterator.cxx
pyuno/source/module/pyuno_runtime.cxx
pyuno/source/module/pyuno_struct.cxx

index a6a875addc460447a8feb40f42aba663579314ce..bf6e5c667b7cb999de28b6282a659dcd3a1b2fbb 100644 (file)
@@ -1684,6 +1684,9 @@ static PyTypeObject PyUNOType =
     , nullptr
 #if PY_VERSION_HEX >= 0x03080000
     , nullptr // vectorcallfunc tp_vectorcall
+#if PY_VERSION_HEX >= 0x03080200
+    , 0 //Py_ssize_t tp_print
+#endif
 #endif
 #endif
 };
index 656d1c84cb0e5f0b3b139f619b2ceb039dce82d3..61c5a15155c6583da2725d735477b5fd7b8e2998 100644 (file)
@@ -231,6 +231,9 @@ static PyTypeObject PyUNO_callable_Type =
     , nullptr
 #if PY_VERSION_HEX >= 0x03080000
     , nullptr // vectorcallfunc tp_vectorcall
+#if PY_VERSION_HEX >= 0x03080200
+    , 0 //Py_ssize_t tp_print
+#endif
 #endif
 #endif
 };
index a7862857d719d2677e191c4f4e35252fc3a310e7..6ba7f96a9632dab3a9bba7413f1748e0b546a1b4 100644 (file)
@@ -168,6 +168,9 @@ static PyTypeObject PyUNO_iterator_Type =
     , nullptr
 #if PY_VERSION_HEX >= 0x03080000
     , nullptr // vectorcallfunc tp_vectorcall
+#if PY_VERSION_HEX >= 0x03080200
+    , 0 //Py_ssize_t tp_print
+#endif
 #endif
 #endif
 };
@@ -305,6 +308,9 @@ static PyTypeObject PyUNO_list_iterator_Type =
     , nullptr
 #if PY_VERSION_HEX >= 0x03080000
     , nullptr // vectorcallfunc tp_vectorcall
+#if PY_VERSION_HEX >= 0x03080200
+    , 0 //Py_ssize_t tp_print
+#endif
 #endif
 #endif
 };
index 6cee574c77f540fab48338965bd4bdcfe2946d87..72dd9e2964ebf8a2462507e9ed46c919726df35f 100644 (file)
@@ -126,6 +126,9 @@ static PyTypeObject RuntimeImpl_Type =
     , nullptr
 #if PY_VERSION_HEX >= 0x03080000
     , nullptr // vectorcallfunc tp_vectorcall
+#if PY_VERSION_HEX >= 0x03080200
+    , 0 //Py_ssize_t tp_print
+#endif
 #endif
 #endif
 };
index 50b74126bee93cddc949333af671f7ace991d61f..56b71cdf5cc44dec8db37d8a9b0aa389d77772d0 100644 (file)
@@ -347,6 +347,9 @@ static PyTypeObject PyUNOStructType =
     , nullptr
 #if PY_VERSION_HEX >= 0x03080000
     , nullptr // vectorcallfunc tp_vectorcall
+#if PY_VERSION_HEX >= 0x03080200
+    , 0 //Py_ssize_t tp_print
+#endif
 #endif
 #endif
 };