Mercurial > cpython-lru_cache-weakref
diff Include/complexobject.h @ 3765:db5488fe495b legacy-trunk
renamed complex -> Py_complex
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 21 Jul 1996 02:24:22 +0000 |
| parents | 2f314ca0cd33 |
| children | ca39355be55a |
line wrap: on
line diff
--- a/Include/complexobject.h Sun Jul 21 02:23:54 1996 +0000 +++ b/Include/complexobject.h Sun Jul 21 02:24:22 1996 +0000 @@ -9,7 +9,7 @@ typedef struct { double real; double imag; -} complex; +} Py_complex; /* Operations on complex numbers from complexmodule.c */ @@ -20,12 +20,12 @@ #define c_quot _Py_c_quot #define c_pow _Py_c_pow -extern complex c_sum(); -extern complex c_diff(); -extern complex c_neg(); -extern complex c_prod(); -extern complex c_quot(); -extern complex c_pow(); +extern Py_complex c_sum(); +extern Py_complex c_diff(); +extern Py_complex c_neg(); +extern Py_complex c_prod(); +extern Py_complex c_quot(); +extern Py_complex c_pow(); /* Complex object interface */ @@ -37,19 +37,19 @@ typedef struct { PyObject_HEAD - complex cval; + Py_complex cval; } PyComplexObject; extern DL_IMPORT(PyTypeObject) 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 double PyComplex_RealAsDouble 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 }
