diff options
Diffstat (limited to 'Include/complexobject.h')
-rw-r--r-- | Include/complexobject.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Include/complexobject.h b/Include/complexobject.h index b82eb90..f5b755d 100644 --- a/Include/complexobject.h +++ b/Include/complexobject.h @@ -20,12 +20,12 @@ typedef struct { #define c_quot _Py_c_quot #define c_pow _Py_c_pow -extern DL_IMPORT(Py_complex) c_sum(Py_complex, Py_complex); -extern DL_IMPORT(Py_complex) c_diff(Py_complex, Py_complex); -extern DL_IMPORT(Py_complex) c_neg(Py_complex); -extern DL_IMPORT(Py_complex) c_prod(Py_complex, Py_complex); -extern DL_IMPORT(Py_complex) c_quot(Py_complex, Py_complex); -extern DL_IMPORT(Py_complex) c_pow(Py_complex, Py_complex); +PyAPI_FUNC(Py_complex) c_sum(Py_complex, Py_complex); +PyAPI_FUNC(Py_complex) c_diff(Py_complex, Py_complex); +PyAPI_FUNC(Py_complex) c_neg(Py_complex); +PyAPI_FUNC(Py_complex) c_prod(Py_complex, Py_complex); +PyAPI_FUNC(Py_complex) c_quot(Py_complex, Py_complex); +PyAPI_FUNC(Py_complex) c_pow(Py_complex, Py_complex); /* Complex object interface */ @@ -40,17 +40,17 @@ typedef struct { Py_complex cval; } PyComplexObject; -extern DL_IMPORT(PyTypeObject) PyComplex_Type; +PyAPI_DATA(PyTypeObject) PyComplex_Type; #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type) #define PyComplex_CheckExact(op) ((op)->ob_type == &PyComplex_Type) -extern DL_IMPORT(PyObject *) PyComplex_FromCComplex(Py_complex); -extern DL_IMPORT(PyObject *) PyComplex_FromDoubles(double real, double imag); +PyAPI_FUNC(PyObject *) PyComplex_FromCComplex(Py_complex); +PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag); -extern DL_IMPORT(double) PyComplex_RealAsDouble(PyObject *op); -extern DL_IMPORT(double) PyComplex_ImagAsDouble(PyObject *op); -extern DL_IMPORT(Py_complex) PyComplex_AsCComplex(PyObject *op); +PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op); +PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op); +PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op); #ifdef __cplusplus } |