Changeset 4041a6d for python/ext
- Timestamp:
- Apr 18, 2016, 10:48:53 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 2e4ae1d
- Parents:
- 7c785e6 (diff), b8ed85e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- python/ext
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/aubio-types.h
r7c785e6 r4041a6d 40 40 #endif 41 41 42 // compat with Python < 2.6 43 #ifndef Py_TYPE 44 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) 45 #endif 46 42 47 // special python type for cvec 43 48 typedef struct -
python/ext/aubiowraphell.h
r7c785e6 r4041a6d 14 14 self->o = new_aubio_## NAME ( PARAMS ); \ 15 15 if (self->o == NULL) { \ 16 PyErr_SetString (PyExc_ StandardError, "error creating object"); \16 PyErr_SetString (PyExc_RuntimeError, "error creating object"); \ 17 17 return -1; \ 18 18 } \ … … 26 26 { \ 27 27 del_aubio_ ## NAME (self->o); \ 28 self->ob_type->tp_free ((PyObject *) self); \28 Py_TYPE(self)->tp_free ((PyObject *) self); \ 29 29 } 30 30 -
python/ext/py-cvec.c
r7c785e6 r4041a6d 60 60 { 61 61 del_cvec (self->o); 62 self->ob_type->tp_free ((PyObject *) self);62 Py_TYPE(self)->tp_free ((PyObject *) self); 63 63 } 64 64 -
python/ext/py-filter.c
r7c785e6 r4041a6d 58 58 del_fvec(self->out); 59 59 del_aubio_filter (self->o); 60 self->ob_type->tp_free ((PyObject *) self);60 Py_TYPE(self)->tp_free ((PyObject *) self); 61 61 } 62 62 -
python/ext/py-sink.c
r7c785e6 r4041a6d 116 116 } 117 117 if (self->o == NULL) { 118 PyErr_SetString (PyExc_ StandardError, "error creating sink with this uri");118 PyErr_SetString (PyExc_RuntimeError, "error creating sink with this uri"); 119 119 return -1; 120 120 } -
python/ext/py-source.c
r7c785e6 r4041a6d 140 140 char_t errstr[30 + strlen(self->uri)]; 141 141 sprintf(errstr, "error creating source with %s", self->uri); 142 PyErr_SetString (PyExc_ StandardError, errstr);142 PyErr_SetString (PyExc_RuntimeError, errstr); 143 143 return -1; 144 144 }
Note: See TracChangeset
for help on using the changeset viewer.