Showing the changes to python/ext (2 of 3 files). Show all
Unified · Split
| @@ -51,32 +51,32 @@ · 50 unmodified lines | ||
| 51 | 51 | #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) |
| 52 | 52 | #endif |
| 53 | 53 | |
| 54 | −PyTypeObject Py_cvecType; | |
| 54 | +extern PyTypeObject Py_cvecType; | |
| 55 | 55 | |
| 56 | 56 | PyObject * new_py_fvec(uint_t length); |
| 57 | 57 | PyObject * new_py_cvec(uint_t length); |
| 58 | 58 | PyObject * new_py_fmat(uint_t height, uint_t length); |
| 59 | 59 | |
| 60 | 60 | // defined in aubio-proxy.c |
| 61 | −int PyAubio_IsValidVector (PyObject *input); | |
| 61 | +extern int PyAubio_IsValidVector (PyObject *input); | |
| 62 | 62 | |
| 63 | −PyObject *PyAubio_CFvecToArray (fvec_t * self); | |
| 64 | −int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out); | |
| 63 | +extern PyObject *PyAubio_CFvecToArray (fvec_t * self); | |
| 64 | +extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out); | |
| 65 | 65 | |
| 66 | −int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i); | |
| 66 | +extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i); | |
| 67 | 67 | |
| 68 | −PyObject *PyAubio_CFmatToArray (fmat_t * self); | |
| 69 | −int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out); | |
| 68 | +extern PyObject *PyAubio_CFmatToArray (fmat_t * self); | |
| 69 | +extern int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out); | |
| 70 | 70 | |
| 71 | 71 | // hand written wrappers |
| 72 | −PyTypeObject Py_filterType; | |
| 72 | +extern PyTypeObject Py_filterType; | |
| 73 | 73 | |
| 74 | −PyTypeObject Py_filterbankType; | |
| 74 | +extern PyTypeObject Py_filterbankType; | |
| 75 | 75 | |
| 76 | −PyTypeObject Py_fftType; | |
| 76 | +extern PyTypeObject Py_fftType; | |
| 77 | 77 | |
| 78 | −PyTypeObject Py_pvocType; | |
| 78 | +extern PyTypeObject Py_pvocType; | |
| 79 | 79 | |
| 80 | −PyTypeObject Py_sourceType; | |
| 80 | +extern PyTypeObject Py_sourceType; | |
| 81 | 81 | |
| 82 | −PyTypeObject Py_sinkType; | |
| 82 | +extern PyTypeObject Py_sinkType; | |
| @@ -74,8 +74,9 @@ static char Py_min_removal_doc[] = "" · 73 unmodified lines | ||
| 74 | 74 | "\n" |
| 75 | 75 | ">>> min_removal(a)"; |
| 76 | 76 | |
| 77 | −void add_ufuncs ( PyObject *m ); | |
| 78 | −int generated_types_ready(void); | |
| 77 | +extern void add_generated_objects ( PyObject *m ); | |
| 78 | +extern void add_ufuncs ( PyObject *m ); | |
| 79 | +extern int generated_types_ready(void); | |
| 79 | 80 | |
| 80 | 81 | static PyObject * |
| 81 | 82 | Py_alpha_norm (PyObject * self, PyObject * args) |