]> granicus.if.org Git - python/commitdiff
renamed complex -> Py_complex
authorGuido van Rossum <guido@python.org>
Sun, 21 Jul 1996 02:24:22 +0000 (02:24 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 21 Jul 1996 02:24:22 +0000 (02:24 +0000)
Include/complexobject.h

index a399a1e6c992d78e9e310122402387d637945d7f..8d74c89ab2532797d7117fa09f488f241bc9a07e 100644 (file)
@@ -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
 }