Changeset d8faaf2 for python


Ignore:
Timestamp:
Sep 23, 2016, 7:54:04 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
b6230d8
Parents:
bd8a92d
Message:

python/ext/aubiomodule.c: remove extern

Location:
python
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • python/ext/aubio-types.h

    rbd8a92d rd8faaf2  
    5252#endif
    5353
    54 extern PyTypeObject Py_cvecType;
     54PyTypeObject Py_cvecType;
    5555
    5656PyObject * new_py_fvec(uint_t length);
     
    5959
    6060// defined in aubio-proxy.c
    61 extern int PyAubio_IsValidVector (PyObject *input);
     61int PyAubio_IsValidVector (PyObject *input);
    6262
    63 extern PyObject *PyAubio_CFvecToArray (fvec_t * self);
    64 extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
     63PyObject *PyAubio_CFvecToArray (fvec_t * self);
     64int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
    6565
    66 extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
     66int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
    6767
    68 extern PyObject *PyAubio_CFmatToArray (fmat_t * self);
    69 extern int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
     68PyObject *PyAubio_CFmatToArray (fmat_t * self);
     69int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
    7070
    7171// hand written wrappers
    72 extern PyTypeObject Py_filterType;
     72PyTypeObject Py_filterType;
    7373
    74 extern PyTypeObject Py_filterbankType;
     74PyTypeObject Py_filterbankType;
    7575
    76 extern PyTypeObject Py_fftType;
     76PyTypeObject Py_fftType;
    7777
    78 extern PyTypeObject Py_pvocType;
     78PyTypeObject Py_pvocType;
    7979
    80 extern PyTypeObject Py_sourceType;
     80PyTypeObject Py_sourceType;
    8181
    82 extern PyTypeObject Py_sinkType;
     82PyTypeObject Py_sinkType;
  • python/ext/aubiomodule.c

    rbd8a92d rd8faaf2  
    7575">>> min_removal(a)";
    7676
    77 extern void add_generated_objects ( PyObject *m );
    78 extern void add_ufuncs ( PyObject *m );
    79 extern int generated_types_ready(void);
     77void add_ufuncs ( PyObject *m );
     78int generated_types_ready(void);
    8079
    8180static PyObject *
  • python/lib/gen_external.py

    rbd8a92d rd8faaf2  
    225225        sources_list.append(output_file)
    226226
    227     objlist = "".join(["extern PyTypeObject Py_%sType;\n" % p for p in lib])
     227    objlist = "".join(["PyTypeObject Py_%sType;\n" % p for p in lib])
    228228    out = """// generated list of objects created with gen_external.py
    229229
Note: See TracChangeset for help on using the changeset viewer.