From 519b4339f1ac649a10ef5db03a05a47d88ee6072 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 21 Jul 1996 02:24:22 +0000 Subject: renamed complex -> Py_complex --- Include/complexobject.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Include/complexobject.h b/Include/complexobject.h index a399a1e..8d74c89 100644 --- a/Include/complexobject.h +++ b/Include/complexobject.h @@ -9,7 +9,7 @@ extern "C" { typedef struct { double real; double imag; -} complex; +} Py_complex; /* Operations on complex numbers from complexmodule.c */ @@ -20,12 +20,12 @@ typedef struct { #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 @@ real and imaginary parts. 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 } -- cgit v0.12