From 0e70ef97a3fc256f3f1fd1481023a9b997965a13 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 13 May 2016 13:46:53 +0200 Subject: [PATCH] python/{ext/*.c,lib/gen_code.py}: complete PyTypeObject definitions --- python/ext/py-cvec.c | 9 +++++++++ python/ext/py-fft.c | 9 +++++++++ python/ext/py-filter.c | 9 +++++++++ python/ext/py-filterbank.c | 9 +++++++++ python/ext/py-phasevoc.c | 9 +++++++++ python/ext/py-sink.c | 9 +++++++++ python/ext/py-source.c | 9 +++++++++ python/lib/gen_code.py | 9 +++++++++ 8 files changed, 72 insertions(+) diff --git a/python/ext/py-cvec.c b/python/ext/py-cvec.c index 0054dced..427cc461 100644 --- a/python/ext/py-cvec.c +++ b/python/ext/py-cvec.c @@ -239,4 +239,13 @@ PyTypeObject Py_cvecType = { (initproc) Py_cvec_init, /* tp_init */ 0, /* tp_alloc */ Py_cvec_new, /* tp_new */ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/ext/py-fft.c b/python/ext/py-fft.c index 0fce627a..7485ea3f 100644 --- a/python/ext/py-fft.c +++ b/python/ext/py-fft.c @@ -187,4 +187,13 @@ PyTypeObject Py_fftType = { (initproc) Py_fft_init, 0, Py_fft_new, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/ext/py-filter.c b/python/ext/py-filter.c index 5d202d1b..df78e475 100644 --- a/python/ext/py-filter.c +++ b/python/ext/py-filter.c @@ -203,4 +203,13 @@ PyTypeObject Py_filterType = { (initproc) Py_filter_init, /* tp_init */ 0, /* tp_alloc */ Py_filter_new, /* tp_new */ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/ext/py-filterbank.c b/python/ext/py-filterbank.c index 0d93414c..a8795b0e 100644 --- a/python/ext/py-filterbank.c +++ b/python/ext/py-filterbank.c @@ -246,4 +246,13 @@ PyTypeObject Py_filterbankType = { (initproc) Py_filterbank_init, 0, Py_filterbank_new, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/ext/py-phasevoc.c b/python/ext/py-phasevoc.c index a08bb5c1..bcd3d8ba 100644 --- a/python/ext/py-phasevoc.c +++ b/python/ext/py-phasevoc.c @@ -201,4 +201,13 @@ PyTypeObject Py_pvocType = { (initproc) Py_pvoc_init, 0, Py_pvoc_new, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/ext/py-sink.c b/python/ext/py-sink.c index 71a0e225..9fada068 100644 --- a/python/ext/py-sink.c +++ b/python/ext/py-sink.c @@ -250,4 +250,13 @@ PyTypeObject Py_sinkType = { (initproc) Py_sink_init, 0, Py_sink_new, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/ext/py-source.c b/python/ext/py-source.c index 2c965137..b9460702 100644 --- a/python/ext/py-source.c +++ b/python/ext/py-source.c @@ -320,4 +320,13 @@ PyTypeObject Py_sourceType = { (initproc) Py_source_init, 0, Py_source_new, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; diff --git a/python/lib/gen_code.py b/python/lib/gen_code.py index 32e9baa6..eb94dab7 100644 --- a/python/lib/gen_code.py +++ b/python/lib/gen_code.py @@ -526,5 +526,14 @@ PyTypeObject Py_{shortname}Type = {{ (initproc) Py_{shortname}_init, 0, Py_{shortname}_new, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }}; """.format(**self.__dict__) -- 2.11.0