python/ext/aubiomodule.c: remove extern
authorPaul Brossier <piem@piem.org>
Fri, 23 Sep 2016 05:54:04 +0000 (07:54 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 23 Sep 2016 05:54:04 +0000 (07:54 +0200)
python/ext/aubio-types.h
python/ext/aubiomodule.c
python/lib/gen_external.py

index f67b2da..95cb095 100644 (file)
 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
 #endif
 
-extern PyTypeObject Py_cvecType;
+PyTypeObject Py_cvecType;
 
 PyObject * new_py_fvec(uint_t length);
 PyObject * new_py_cvec(uint_t length);
 PyObject * new_py_fmat(uint_t height, uint_t length);
 
 // defined in aubio-proxy.c
-extern int PyAubio_IsValidVector (PyObject *input);
+int PyAubio_IsValidVector (PyObject *input);
 
-extern PyObject *PyAubio_CFvecToArray (fvec_t * self);
-extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
+PyObject *PyAubio_CFvecToArray (fvec_t * self);
+int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
 
-extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
+int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
 
-extern PyObject *PyAubio_CFmatToArray (fmat_t * self);
-extern int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
+PyObject *PyAubio_CFmatToArray (fmat_t * self);
+int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
 
 // hand written wrappers
-extern PyTypeObject Py_filterType;
+PyTypeObject Py_filterType;
 
-extern PyTypeObject Py_filterbankType;
+PyTypeObject Py_filterbankType;
 
-extern PyTypeObject Py_fftType;
+PyTypeObject Py_fftType;
 
-extern PyTypeObject Py_pvocType;
+PyTypeObject Py_pvocType;
 
-extern PyTypeObject Py_sourceType;
+PyTypeObject Py_sourceType;
 
-extern PyTypeObject Py_sinkType;
+PyTypeObject Py_sinkType;
index 616dc75..46c196e 100644 (file)
@@ -74,9 +74,8 @@ static char Py_min_removal_doc[] = ""
 "\n"
 ">>> min_removal(a)";
 
-extern void add_generated_objects ( PyObject *m );
-extern void add_ufuncs ( PyObject *m );
-extern int generated_types_ready(void);
+void add_ufuncs ( PyObject *m );
+int generated_types_ready(void);
 
 static PyObject *
 Py_alpha_norm (PyObject * self, PyObject * args)
index 533116e..a86687d 100644 (file)
@@ -224,7 +224,7 @@ void add_generated_objects ( PyObject *m )
         print ("wrote %s" % output_file )
         sources_list.append(output_file)
 
-    objlist = "".join(["extern PyTypeObject Py_%sType;\n" % p for p in lib])
+    objlist = "".join(["PyTypeObject Py_%sType;\n" % p for p in lib])
     out = """// generated list of objects created with gen_external.py
 
 #include <Python.h>