shithub: aubio

Download patch

ref: 0e70ef97a3fc256f3f1fd1481023a9b997965a13
parent: 84fad5ac08c273b0224d38755ff7e1d884e7345f
author: Paul Brossier <piem@piem.org>
date: Fri May 13 09:46:53 EDT 2016

python/{ext/*.c,lib/gen_code.py}: complete PyTypeObject definitions

--- a/python/ext/py-cvec.c
+++ b/python/ext/py-cvec.c
@@ -239,4 +239,13 @@
   (initproc) Py_cvec_init,      /* tp_init           */
   0,                            /* tp_alloc          */
   Py_cvec_new,                  /* tp_new            */
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/ext/py-fft.c
+++ b/python/ext/py-fft.c
@@ -187,4 +187,13 @@
   (initproc) Py_fft_init,
   0,
   Py_fft_new,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/ext/py-filter.c
+++ b/python/ext/py-filter.c
@@ -203,4 +203,13 @@
   (initproc) Py_filter_init,    /* tp_init           */
   0,                            /* tp_alloc          */
   Py_filter_new,                /* tp_new            */
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/ext/py-filterbank.c
+++ b/python/ext/py-filterbank.c
@@ -246,4 +246,13 @@
   (initproc) Py_filterbank_init,
   0,
   Py_filterbank_new,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/ext/py-phasevoc.c
+++ b/python/ext/py-phasevoc.c
@@ -201,4 +201,13 @@
   (initproc) Py_pvoc_init,
   0,
   Py_pvoc_new,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/ext/py-sink.c
+++ b/python/ext/py-sink.c
@@ -250,4 +250,13 @@
   (initproc) Py_sink_init,
   0,
   Py_sink_new,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -320,4 +320,13 @@
   (initproc) Py_source_init,
   0,
   Py_source_new,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 };
--- a/python/lib/gen_code.py
+++ b/python/lib/gen_code.py
@@ -526,5 +526,14 @@
   (initproc) Py_{shortname}_init,
   0,
   Py_{shortname}_new,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
+  0,
 }};
 """.format(**self.__dict__)