Skip to content

Commit 519b433

Browse files
committed
renamed complex -> Py_complex
1 parent 5a84914 commit 519b433

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Include/complexobject.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extern "C" {
99
typedef struct {
1010
double real;
1111
double imag;
12-
} complex;
12+
} Py_complex;
1313

1414
/* Operations on complex numbers from complexmodule.c */
1515

@@ -20,12 +20,12 @@ typedef struct {
2020
#define c_quot _Py_c_quot
2121
#define c_pow _Py_c_pow
2222

23-
extern complex c_sum();
24-
extern complex c_diff();
25-
extern complex c_neg();
26-
extern complex c_prod();
27-
extern complex c_quot();
28-
extern complex c_pow();
23+
extern Py_complex c_sum();
24+
extern Py_complex c_diff();
25+
extern Py_complex c_neg();
26+
extern Py_complex c_prod();
27+
extern Py_complex c_quot();
28+
extern Py_complex c_pow();
2929

3030

3131
/* Complex object interface */
@@ -37,19 +37,19 @@ real and imaginary parts.
3737

3838
typedef struct {
3939
PyObject_HEAD
40-
complex cval;
40+
Py_complex cval;
4141
} PyComplexObject;
4242

4343
extern DL_IMPORT(PyTypeObject) PyComplex_Type;
4444

4545
#define PyComplex_Check(op) ((op)->ob_type == &PyComplex_Type)
4646

47-
extern PyObject *PyComplex_FromCComplex Py_PROTO((complex));
47+
extern PyObject *PyComplex_FromCComplex Py_PROTO((Py_complex));
4848
extern PyObject *PyComplex_FromDoubles Py_PROTO((double real, double imag));
4949

5050
extern double PyComplex_RealAsDouble Py_PROTO((PyObject *op));
5151
extern double PyComplex_ImagAsDouble Py_PROTO((PyObject *op));
52-
extern complex PyComplex_AsCComplex Py_PROTO((PyObject *op));
52+
extern Py_complex PyComplex_AsCComplex Py_PROTO((PyObject *op));
5353

5454
#ifdef __cplusplus
5555
}

0 commit comments

Comments
 (0)