Mercurial > cpython-lru_cache-weakref
diff Include/complexobject.h @ 9586:60fdb1db1175 legacy-trunk
Add DL_IMPORT(returntype) for all officially exported functions.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 04 Dec 1998 18:48:25 +0000 |
| parents | ca39355be55a |
| children | 5709ddba423c |
line wrap: on
line diff
--- a/Include/complexobject.h Fri Dec 04 16:42:46 1998 +0000 +++ b/Include/complexobject.h Fri Dec 04 18:48:25 1998 +0000 @@ -20,12 +20,12 @@ #define c_quot _Py_c_quot #define c_pow _Py_c_pow -extern Py_complex c_sum Py_PROTO((Py_complex, Py_complex)); -extern Py_complex c_diff Py_PROTO((Py_complex, Py_complex)); -extern Py_complex c_neg Py_PROTO((Py_complex)); -extern Py_complex c_prod Py_PROTO((Py_complex, Py_complex)); -extern Py_complex c_quot Py_PROTO((Py_complex, Py_complex)); -extern Py_complex c_pow Py_PROTO((Py_complex, Py_complex)); +extern DL_IMPORT(Py_complex) c_sum Py_PROTO((Py_complex, Py_complex)); +extern DL_IMPORT(Py_complex) c_diff Py_PROTO((Py_complex, Py_complex)); +extern DL_IMPORT(Py_complex) c_neg Py_PROTO((Py_complex)); +extern DL_IMPORT(Py_complex) c_prod Py_PROTO((Py_complex, Py_complex)); +extern DL_IMPORT(Py_complex) c_quot Py_PROTO((Py_complex, Py_complex)); +extern DL_IMPORT(Py_complex) c_pow Py_PROTO((Py_complex, Py_complex)); /* Complex object interface */ @@ -44,12 +44,12 @@ #define PyComplex_Check(op) ((op)->ob_type == &PyComplex_Type) -extern PyObject *PyComplex_FromCComplex Py_PROTO((Py_complex)); -extern PyObject *PyComplex_FromDoubles Py_PROTO((double real, double imag)); +extern DL_IMPORT(PyObject *) PyComplex_FromCComplex Py_PROTO((Py_complex)); +extern DL_IMPORT(PyObject *) PyComplex_FromDoubles Py_PROTO((double real, double imag)); -extern double PyComplex_RealAsDouble Py_PROTO((PyObject *op)); -extern double PyComplex_ImagAsDouble Py_PROTO((PyObject *op)); -extern Py_complex PyComplex_AsCComplex Py_PROTO((PyObject *op)); +extern DL_IMPORT(double) PyComplex_RealAsDouble Py_PROTO((PyObject *op)); +extern DL_IMPORT(double) PyComplex_ImagAsDouble Py_PROTO((PyObject *op)); +extern DL_IMPORT(Py_complex) PyComplex_AsCComplex Py_PROTO((PyObject *op)); #ifdef __cplusplus }
