mirror of https://github.com/python/cpython.git
renamed complex -> Py_complex
This commit is contained in:
parent
5a84914803
commit
519b4339f1
|
@ -9,7 +9,7 @@ extern "C" {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
double real;
|
double real;
|
||||||
double imag;
|
double imag;
|
||||||
} complex;
|
} Py_complex;
|
||||||
|
|
||||||
/* Operations on complex numbers from complexmodule.c */
|
/* Operations on complex numbers from complexmodule.c */
|
||||||
|
|
||||||
|
@ -20,12 +20,12 @@ typedef struct {
|
||||||
#define c_quot _Py_c_quot
|
#define c_quot _Py_c_quot
|
||||||
#define c_pow _Py_c_pow
|
#define c_pow _Py_c_pow
|
||||||
|
|
||||||
extern complex c_sum();
|
extern Py_complex c_sum();
|
||||||
extern complex c_diff();
|
extern Py_complex c_diff();
|
||||||
extern complex c_neg();
|
extern Py_complex c_neg();
|
||||||
extern complex c_prod();
|
extern Py_complex c_prod();
|
||||||
extern complex c_quot();
|
extern Py_complex c_quot();
|
||||||
extern complex c_pow();
|
extern Py_complex c_pow();
|
||||||
|
|
||||||
|
|
||||||
/* Complex object interface */
|
/* Complex object interface */
|
||||||
|
@ -37,19 +37,19 @@ real and imaginary parts.
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
complex cval;
|
Py_complex cval;
|
||||||
} PyComplexObject;
|
} PyComplexObject;
|
||||||
|
|
||||||
extern DL_IMPORT(PyTypeObject) PyComplex_Type;
|
extern DL_IMPORT(PyTypeObject) PyComplex_Type;
|
||||||
|
|
||||||
#define PyComplex_Check(op) ((op)->ob_type == &PyComplex_Type)
|
#define PyComplex_Check(op) ((op)->ob_type == &PyComplex_Type)
|
||||||
|
|
||||||
extern PyObject *PyComplex_FromCComplex Py_PROTO((complex));
|
extern PyObject *PyComplex_FromCComplex Py_PROTO((Py_complex));
|
||||||
extern PyObject *PyComplex_FromDoubles Py_PROTO((double real, double imag));
|
extern PyObject *PyComplex_FromDoubles Py_PROTO((double real, double imag));
|
||||||
|
|
||||||
extern double PyComplex_RealAsDouble Py_PROTO((PyObject *op));
|
extern double PyComplex_RealAsDouble Py_PROTO((PyObject *op));
|
||||||
extern double PyComplex_ImagAsDouble Py_PROTO((PyObject *op));
|
extern double PyComplex_ImagAsDouble Py_PROTO((PyObject *op));
|
||||||
extern complex PyComplex_AsCComplex Py_PROTO((PyObject *op));
|
extern Py_complex PyComplex_AsCComplex Py_PROTO((PyObject *op));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue