mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
This commit is contained in:
parent
44121a6bc9
commit
91a681debf
51 changed files with 661 additions and 665 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue