Adding tp_vectorcall field to PyTypeObject for Python version 3.8
This commit is contained in:
parent
9d1244c712
commit
eaa16914d1
4 changed files with 18 additions and 0 deletions
|
|
@ -256,6 +256,9 @@ SwigPyStaticVar_Type(void) {
|
||||||
#if PY_VERSION_HEX >= 0x03040000
|
#if PY_VERSION_HEX >= 0x03040000
|
||||||
0, /* tp_finalize */
|
0, /* tp_finalize */
|
||||||
#endif
|
#endif
|
||||||
|
#if PY_VERSION_HEX >= 0x03080000
|
||||||
|
0, /* tp_vectorcall */
|
||||||
|
#endif
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0, /* tp_allocs */
|
0, /* tp_allocs */
|
||||||
0, /* tp_frees */
|
0, /* tp_frees */
|
||||||
|
|
@ -334,6 +337,9 @@ SwigPyObjectType(void) {
|
||||||
#if PY_VERSION_HEX >= 0x03040000
|
#if PY_VERSION_HEX >= 0x03040000
|
||||||
0, /* tp_finalize */
|
0, /* tp_finalize */
|
||||||
#endif
|
#endif
|
||||||
|
#if PY_VERSION_HEX >= 0x03080000
|
||||||
|
0, /* tp_vectorcall */
|
||||||
|
#endif
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0, /* tp_allocs */
|
0, /* tp_allocs */
|
||||||
0, /* tp_frees */
|
0, /* tp_frees */
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,9 @@ swig_varlink_type(void) {
|
||||||
#if PY_VERSION_HEX >= 0x03040000
|
#if PY_VERSION_HEX >= 0x03040000
|
||||||
0, /* tp_finalize */
|
0, /* tp_finalize */
|
||||||
#endif
|
#endif
|
||||||
|
#if PY_VERSION_HEX >= 0x03080000
|
||||||
|
0, /* tp_vectorcall */
|
||||||
|
#endif
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0, /* tp_allocs */
|
0, /* tp_allocs */
|
||||||
0, /* tp_frees */
|
0, /* tp_frees */
|
||||||
|
|
|
||||||
|
|
@ -696,6 +696,9 @@ SwigPyObject_TypeOnce(void) {
|
||||||
#if PY_VERSION_HEX >= 0x03040000
|
#if PY_VERSION_HEX >= 0x03040000
|
||||||
0, /* tp_finalize */
|
0, /* tp_finalize */
|
||||||
#endif
|
#endif
|
||||||
|
#if PY_VERSION_HEX >= 0x03080000
|
||||||
|
0, /* tp_vectorcall */
|
||||||
|
#endif
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0, /* tp_allocs */
|
0, /* tp_allocs */
|
||||||
0, /* tp_frees */
|
0, /* tp_frees */
|
||||||
|
|
@ -857,6 +860,9 @@ SwigPyPacked_TypeOnce(void) {
|
||||||
#if PY_VERSION_HEX >= 0x03040000
|
#if PY_VERSION_HEX >= 0x03040000
|
||||||
0, /* tp_finalize */
|
0, /* tp_finalize */
|
||||||
#endif
|
#endif
|
||||||
|
#if PY_VERSION_HEX >= 0x03080000
|
||||||
|
0, /* tp_vectorcall */
|
||||||
|
#endif
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0, /* tp_allocs */
|
0, /* tp_allocs */
|
||||||
0, /* tp_frees */
|
0, /* tp_frees */
|
||||||
|
|
|
||||||
|
|
@ -4134,6 +4134,9 @@ public:
|
||||||
Printv(f, "#if PY_VERSION_HEX >= 0x03040000\n", NIL);
|
Printv(f, "#if PY_VERSION_HEX >= 0x03040000\n", NIL);
|
||||||
printSlot(f, getSlot(n, "feature:python:tp_finalize"), "tp_finalize", "destructor");
|
printSlot(f, getSlot(n, "feature:python:tp_finalize"), "tp_finalize", "destructor");
|
||||||
Printv(f, "#endif\n", NIL);
|
Printv(f, "#endif\n", NIL);
|
||||||
|
Printv(f, "#if PY_VERSION_HEX >= 0x03080000\n", NIL);
|
||||||
|
printSlot(f, getSlot(n, "feature:python:tp_vectorcall"), "tp_vectorcall", "vectorcallfunc");
|
||||||
|
Printv(f, "#endif\n", NIL);
|
||||||
Printv(f, "#ifdef COUNT_ALLOCS\n", NIL);
|
Printv(f, "#ifdef COUNT_ALLOCS\n", NIL);
|
||||||
printSlot(f, getSlot(n, "feature:python:tp_allocs"), "tp_allocs", "Py_ssize_t");
|
printSlot(f, getSlot(n, "feature:python:tp_allocs"), "tp_allocs", "Py_ssize_t");
|
||||||
printSlot(f, getSlot(n, "feature:python:tp_frees"), "tp_frees", "Py_ssize_t");
|
printSlot(f, getSlot(n, "feature:python:tp_frees"), "tp_frees", "Py_ssize_t");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue