summaryrefslogtreecommitdiff
path: root/Include/complexobject.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-09 00:20:36 +0000
committerFred Drake <fdrake@acm.org>2000-07-09 00:20:36 +0000
commit2a9034d3c9b7801b02e97521937eb0666f7bebf4 (patch)
tree3670e6eead7e1d0ee8ab64e42b8bed3c971a839a /Include/complexobject.h
parent2cf370be31712d62dc5b4d97d07f2ce002ddec89 (diff)
downloadcpython-2a9034d3c9b7801b02e97521937eb0666f7bebf4.tar.gz
ANSI-fication and Py_PROTO extermination.
Diffstat (limited to 'Include/complexobject.h')
-rw-r--r--Include/complexobject.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/Include/complexobject.h b/Include/complexobject.h
index ef62964c36..ef5016fe41 100644
--- a/Include/complexobject.h
+++ b/Include/complexobject.h
@@ -1,14 +1,14 @@
+/* Complex number structure */
+
#ifndef COMPLEXOBJECT_H
#define COMPLEXOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
-/* Complex number structure */
-
typedef struct {
- double real;
- double imag;
+ double real;
+ double imag;
} 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 DL_IMPORT(Py_complex) c_sum Py_PROTO((Py_complex, Py_complex));
-extern DL_IMPORT(Py_complex) c_diff Py_PROTO((Py_complex, Py_complex));
-extern DL_IMPORT(Py_complex) c_neg Py_PROTO((Py_complex));
-extern DL_IMPORT(Py_complex) c_prod Py_PROTO((Py_complex, Py_complex));
-extern DL_IMPORT(Py_complex) c_quot Py_PROTO((Py_complex, Py_complex));
-extern DL_IMPORT(Py_complex) c_pow Py_PROTO((Py_complex, Py_complex));
+extern DL_IMPORT(Py_complex) c_sum(Py_complex, Py_complex);
+extern DL_IMPORT(Py_complex) c_diff(Py_complex, Py_complex);
+extern DL_IMPORT(Py_complex) c_neg(Py_complex);
+extern DL_IMPORT(Py_complex) c_prod(Py_complex, Py_complex);
+extern DL_IMPORT(Py_complex) c_quot(Py_complex, Py_complex);
+extern DL_IMPORT(Py_complex) c_pow(Py_complex, Py_complex);
/* Complex object interface */
@@ -36,20 +36,20 @@ real and imaginary parts.
*/
typedef struct {
- PyObject_HEAD
- Py_complex cval;
+ PyObject_HEAD
+ Py_complex cval;
} PyComplexObject;
extern DL_IMPORT(PyTypeObject) PyComplex_Type;
#define PyComplex_Check(op) ((op)->ob_type == &PyComplex_Type)
-extern DL_IMPORT(PyObject *) PyComplex_FromCComplex Py_PROTO((Py_complex));
-extern DL_IMPORT(PyObject *) PyComplex_FromDoubles Py_PROTO((double real, double imag));
+extern DL_IMPORT(PyObject *) PyComplex_FromCComplex(Py_complex);
+extern DL_IMPORT(PyObject *) PyComplex_FromDoubles(double real, double imag);
-extern DL_IMPORT(double) PyComplex_RealAsDouble Py_PROTO((PyObject *op));
-extern DL_IMPORT(double) PyComplex_ImagAsDouble Py_PROTO((PyObject *op));
-extern DL_IMPORT(Py_complex) PyComplex_AsCComplex Py_PROTO((PyObject *op));
+extern DL_IMPORT(double) PyComplex_RealAsDouble(PyObject *op);
+extern DL_IMPORT(double) PyComplex_ImagAsDouble(PyObject *op);
+extern DL_IMPORT(Py_complex) PyComplex_AsCComplex(PyObject *op);
#ifdef __cplusplus
}