diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-09 00:20:36 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-09 00:20:36 (GMT) |
commit | ea9cb5aebf38741871ad4f28971dcd23ddd77ad2 (patch) | |
tree | 0e891c50f3406cf846cfdad4757464dd087e6592 /Include/complexobject.h | |
parent | 5eb6d4e3bf094c33ae66432eeae3668e220dd28d (diff) | |
download | cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.zip cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.tar.gz cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.tar.bz2 |
ANSI-fication and Py_PROTO extermination.
Diffstat (limited to 'Include/complexobject.h')
-rw-r--r-- | Include/complexobject.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Include/complexobject.h b/Include/complexobject.h index ef62964..ef5016f 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 } |