Adding tp_finalize field to PyTypeObject for Python version 3.4 and up

This commit is contained in:
Alec Cooper 2015-10-27 20:12:03 -04:00
commit e79349d886
3 changed files with 12 additions and 0 deletions

View file

@ -435,6 +435,9 @@ SwigPyStaticVar_Type(void) {
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif

View file

@ -185,6 +185,9 @@ swig_varlink_type(void) {
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif

View file

@ -806,6 +806,9 @@ SwigPyObject_TypeOnce(void) {
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif
@ -985,6 +988,9 @@ SwigPyPacked_TypeOnce(void) {
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#if PY_VERSION_HEX >= 0x03040000
0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif