python 3.8.2 compile: add tp_print to PyTypeObject
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>
This commit is contained in:
committed by
Noel Grandin
parent
ee8914cd0b
commit
50ccb7e82b
@@ -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
|
||||
};
|
||||
|
||||
@@ -235,6 +235,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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user