@@ -41,8 +41,7 @@ staticforward Py_complex c_prodi();
4141staticforward Py_complex c_sqrt ();
4242
4343
44- static Py_complex c_acos (x )
45- Py_complex x ;
44+ static Py_complex c_acos (Py_complex x )
4645{
4746 return c_neg (c_prodi (c_log (c_sum (x ,c_prod (c_i ,
4847 c_sqrt (c_diff (c_1 ,c_prod (x ,x ))))))));
@@ -54,8 +53,7 @@ static char c_acos_doc [] =
5453Return the arc cosine of x." ;
5554
5655
57- static Py_complex c_acosh (x )
58- Py_complex x ;
56+ static Py_complex c_acosh (Py_complex x )
5957{
6058 Py_complex z ;
6159 z = c_sqrt (c_half );
@@ -70,8 +68,7 @@ static char c_acosh_doc [] =
7068Return the hyperbolic arccosine of x." ;
7169
7270
73- static Py_complex c_asin (x )
74- Py_complex x ;
71+ static Py_complex c_asin (Py_complex x )
7572{
7673 Py_complex z ;
7774 z = c_sqrt (c_half );
@@ -86,8 +83,7 @@ static char c_asin_doc [] =
8683Return the arc sine of x." ;
8784
8885
89- static Py_complex c_asinh (x )
90- Py_complex x ;
86+ static Py_complex c_asinh (Py_complex x )
9187{
9288 /* Break up long expression for WATCOM */
9389 Py_complex z ;
@@ -101,8 +97,7 @@ static char c_asinh_doc [] =
10197Return the hyperbolic arc sine of x." ;
10298
10399
104- static Py_complex c_atan (x )
105- Py_complex x ;
100+ static Py_complex c_atan (Py_complex x )
106101{
107102 return c_prod (c_i2 ,c_log (c_quot (c_sum (c_i ,x ),c_diff (c_i ,x ))));
108103}
@@ -113,8 +108,7 @@ static char c_atan_doc [] =
113108Return the arc tangent of x." ;
114109
115110
116- static Py_complex c_atanh (x )
117- Py_complex x ;
111+ static Py_complex c_atanh (Py_complex x )
118112{
119113 return c_prod (c_half ,c_log (c_quot (c_sum (c_1 ,x ),c_diff (c_1 ,x ))));
120114}
@@ -125,8 +119,7 @@ static char c_atanh_doc [] =
125119Return the hyperbolic arc tangent of x." ;
126120
127121
128- static Py_complex c_cos (x )
129- Py_complex x ;
122+ static Py_complex c_cos (Py_complex x )
130123{
131124 Py_complex r ;
132125 r .real = cos (x .real )* cosh (x .imag );
@@ -140,8 +133,7 @@ static char c_cos_doc [] =
140133Return the cosine of x." ;
141134
142135
143- static Py_complex c_cosh (x )
144- Py_complex x ;
136+ static Py_complex c_cosh (Py_complex x )
145137{
146138 Py_complex r ;
147139 r .real = cos (x .imag )* cosh (x .real );
@@ -155,8 +147,7 @@ static char c_cosh_doc [] =
155147Return the hyperbolic cosine of x." ;
156148
157149
158- static Py_complex c_exp (x )
159- Py_complex x ;
150+ static Py_complex c_exp (Py_complex x )
160151{
161152 Py_complex r ;
162153 double l = exp (x .real );
@@ -171,8 +162,7 @@ static char c_exp_doc [] =
171162Return the exponential value e**x." ;
172163
173164
174- static Py_complex c_log (x )
175- Py_complex x ;
165+ static Py_complex c_log (Py_complex x )
176166{
177167 Py_complex r ;
178168 double l = hypot (x .real ,x .imag );
@@ -187,8 +177,7 @@ static char c_log_doc [] =
187177Return the natural logarithm of x." ;
188178
189179
190- static Py_complex c_log10 (x )
191- Py_complex x ;
180+ static Py_complex c_log10 (Py_complex x )
192181{
193182 Py_complex r ;
194183 double l = hypot (x .real ,x .imag );
@@ -204,8 +193,7 @@ Return the base-10 logarithm of x.";
204193
205194
206195/* internal function not available from Python */
207- static Py_complex c_prodi (x )
208- Py_complex x ;
196+ static Py_complex c_prodi (Py_complex x )
209197{
210198 Py_complex r ;
211199 r .real = - x .imag ;
@@ -214,8 +202,7 @@ static Py_complex c_prodi(x)
214202}
215203
216204
217- static Py_complex c_sin (x )
218- Py_complex x ;
205+ static Py_complex c_sin (Py_complex x )
219206{
220207 Py_complex r ;
221208 r .real = sin (x .real )* cosh (x .imag );
@@ -229,8 +216,7 @@ static char c_sin_doc [] =
229216Return the sine of x." ;
230217
231218
232- static Py_complex c_sinh (x )
233- Py_complex x ;
219+ static Py_complex c_sinh (Py_complex x )
234220{
235221 Py_complex r ;
236222 r .real = cos (x .imag )* sinh (x .real );
@@ -244,8 +230,7 @@ static char c_sinh_doc [] =
244230Return the hyperbolic sine of x." ;
245231
246232
247- static Py_complex c_sqrt (x )
248- Py_complex x ;
233+ static Py_complex c_sqrt (Py_complex x )
249234{
250235 Py_complex r ;
251236 double s ,d ;
@@ -276,8 +261,7 @@ static char c_sqrt_doc [] =
276261Return the square root of x." ;
277262
278263
279- static Py_complex c_tan (x )
280- Py_complex x ;
264+ static Py_complex c_tan (Py_complex x )
281265{
282266 Py_complex r ;
283267 double sr ,cr ,shi ,chi ;
@@ -303,8 +287,7 @@ static char c_tan_doc [] =
303287Return the tangent of x." ;
304288
305289
306- static Py_complex c_tanh (x )
307- Py_complex x ;
290+ static Py_complex c_tanh (Py_complex x )
308291{
309292 Py_complex r ;
310293 double si ,ci ,shr ,chr ;
@@ -345,9 +328,7 @@ math_error()
345328}
346329
347330static PyObject *
348- math_1 (args , func )
349- PyObject * args ;
350- Py_complex (* func )(Py_complex );
331+ math_1 (PyObject * args , Py_complex (* func )(Py_complex ))
351332{
352333 Py_complex x ;
353334 if (!PyArg_ParseTuple (args , "D" , & x ))
@@ -365,7 +346,7 @@ math_1(args, func)
365346}
366347
367348#define FUNC1 (stubname , func ) \
368- static PyObject * stubname(self, args) PyObject *self, *args; { \
349+ static PyObject * stubname(PyObject *self, PyObject *args) { \
369350 return math_1(args, func); \
370351 }
371352
0 commit comments