summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-07-21 02:24:22 (GMT)
committerGuido van Rossum <guido@python.org>1996-07-21 02:24:22 (GMT)
commit519b4339f1ac649a10ef5db03a05a47d88ee6072 (patch)
tree8efdee4251e68051985931e477ed130ecdbaf081 /Include
parent5a849148030f622576615e68bfd6b29046e026ab (diff)
downloadcpython-519b4339f1ac649a10ef5db03a05a47d88ee6072.zip
cpython-519b4339f1ac649a10ef5db03a05a47d88ee6072.tar.gz
cpython-519b4339f1ac649a10ef5db03a05a47d88ee6072.tar.bz2
renamed complex -> Py_complex
Diffstat (limited to 'Include')
-rw-r--r--Include/complexobject.h20
1 files 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
}