History

python/ext/aubiomodule.c: remove extern

Paul Brossier committed 10 years ago

Commit d8faaf21 parent bd8a92d3 files · +16 −17Browse files

Showing the changes to python (3 of 3 files). Show all

Unified · Split

3 files
  1. python/ext/aubio-types.h +13 −13
  2. python/ext/aubiomodule.c +2 −3
  3. python/lib/gen_external.py +1 −1
python/ext/aubio-types.h+13−13
@@ -51,32 +51,32 @@ · 50 unmodified lines
5151 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
5252 #endif
5353
54−extern PyTypeObject Py_cvecType;
54+PyTypeObject Py_cvecType;
5555
5656 PyObject * new_py_fvec(uint_t length);
5757 PyObject * new_py_cvec(uint_t length);
5858 PyObject * new_py_fmat(uint_t height, uint_t length);
5959
6060 // defined in aubio-proxy.c
61−extern int PyAubio_IsValidVector (PyObject *input);
61+int PyAubio_IsValidVector (PyObject *input);
6262
63−extern PyObject *PyAubio_CFvecToArray (fvec_t * self);
64−extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
63+PyObject *PyAubio_CFvecToArray (fvec_t * self);
64+int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
6565
66−extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
66+int 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);
68+PyObject *PyAubio_CFmatToArray (fmat_t * self);
69+int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
7070
7171 // hand written wrappers
72−extern PyTypeObject Py_filterType;
72+PyTypeObject Py_filterType;
7373
74−extern PyTypeObject Py_filterbankType;
74+PyTypeObject Py_filterbankType;
7575
76−extern PyTypeObject Py_fftType;
76+PyTypeObject Py_fftType;
7777
78−extern PyTypeObject Py_pvocType;
78+PyTypeObject Py_pvocType;
7979
80−extern PyTypeObject Py_sourceType;
80+PyTypeObject Py_sourceType;
8181
82−extern PyTypeObject Py_sinkType;
82+PyTypeObject Py_sinkType;
python/ext/aubiomodule.c+2−3
@@ -74,9 +74,8 @@ static char Py_min_removal_doc[] = "" · 73 unmodified lines
7474 "\n"
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);
77+void add_ufuncs ( PyObject *m );
78+int generated_types_ready(void);
8079
8180 static PyObject *
8281 Py_alpha_norm (PyObject * self, PyObject * args)
python/lib/gen_external.py+1−1
@@ -224,7 +224,7 @@ void add_generated_objects ( PyObject *m ) · 223 unmodified lines
224224 print ("wrote %s" % output_file )
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
230230 #include <Python.h>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t