[Python-checkins] CVS: python/dist/src/Modules cmathmodule.c,2.14,2.15

Peter Schneider-Kamp python-dev@python.org
Mon, 10 Jul 2000 02:31:37 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3201

Modified Files:
	cmathmodule.c 
Log Message:


ANSI-fication


Index: cmathmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cmathmodule.c,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -r2.14 -r2.15
*** cmathmodule.c	2000/07/09 03:09:55	2.14
--- cmathmodule.c	2000/07/10 09:31:34	2.15
***************
*** 42,47 ****
  
  
! static Py_complex c_acos(x)
! 	Py_complex x;
  {
  	return c_neg(c_prodi(c_log(c_sum(x,c_prod(c_i,
--- 42,46 ----
  
  
! static Py_complex c_acos(Py_complex x)
  {
  	return c_neg(c_prodi(c_log(c_sum(x,c_prod(c_i,
***************
*** 55,60 ****
  
  
! static Py_complex c_acosh(x)
! 	Py_complex x;
  {
  	Py_complex z;
--- 54,58 ----
  
  
! static Py_complex c_acosh(Py_complex x)
  {
  	Py_complex z;
***************
*** 71,76 ****
  
  
! static Py_complex c_asin(x)
! 	Py_complex x;
  {
  	Py_complex z;
--- 69,73 ----
  
  
! static Py_complex c_asin(Py_complex x)
  {
  	Py_complex z;
***************
*** 87,92 ****
  
  
! static Py_complex c_asinh(x)
! 	Py_complex x;
  {
  	/* Break up long expression for WATCOM */
--- 84,88 ----
  
  
! static Py_complex c_asinh(Py_complex x)
  {
  	/* Break up long expression for WATCOM */
***************
*** 102,107 ****
  
  
! static Py_complex c_atan(x)
! 	Py_complex x;
  {
  	return c_prod(c_i2,c_log(c_quot(c_sum(c_i,x),c_diff(c_i,x))));
--- 98,102 ----
  
  
! static Py_complex c_atan(Py_complex x)
  {
  	return c_prod(c_i2,c_log(c_quot(c_sum(c_i,x),c_diff(c_i,x))));
***************
*** 114,119 ****
  
  
! static Py_complex c_atanh(x)
! 	Py_complex x;
  {
  	return c_prod(c_half,c_log(c_quot(c_sum(c_1,x),c_diff(c_1,x))));
--- 109,113 ----
  
  
! static Py_complex c_atanh(Py_complex x)
  {
  	return c_prod(c_half,c_log(c_quot(c_sum(c_1,x),c_diff(c_1,x))));
***************
*** 126,131 ****
  
  
! static Py_complex c_cos(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 120,124 ----
  
  
! static Py_complex c_cos(Py_complex x)
  {
  	Py_complex r;
***************
*** 141,146 ****
  
  
! static Py_complex c_cosh(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 134,138 ----
  
  
! static Py_complex c_cosh(Py_complex x)
  {
  	Py_complex r;
***************
*** 156,161 ****
  
  
! static Py_complex c_exp(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 148,152 ----
  
  
! static Py_complex c_exp(Py_complex x)
  {
  	Py_complex r;
***************
*** 172,177 ****
  
  
! static Py_complex c_log(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 163,167 ----
  
  
! static Py_complex c_log(Py_complex x)
  {
  	Py_complex r;
***************
*** 188,193 ****
  
  
! static Py_complex c_log10(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 178,182 ----
  
  
! static Py_complex c_log10(Py_complex x)
  {
  	Py_complex r;
***************
*** 205,210 ****
  
  /* internal function not available from Python */
! static Py_complex c_prodi(x)
!      Py_complex x;
  {
  	Py_complex r;
--- 194,198 ----
  
  /* internal function not available from Python */
! static Py_complex c_prodi(Py_complex x)
  {
  	Py_complex r;
***************
*** 215,220 ****
  
  
! static Py_complex c_sin(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 203,207 ----
  
  
! static Py_complex c_sin(Py_complex x)
  {
  	Py_complex r;
***************
*** 230,235 ****
  
  
! static Py_complex c_sinh(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 217,221 ----
  
  
! static Py_complex c_sinh(Py_complex x)
  {
  	Py_complex r;
***************
*** 245,250 ****
  
  
! static Py_complex c_sqrt(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 231,235 ----
  
  
! static Py_complex c_sqrt(Py_complex x)
  {
  	Py_complex r;
***************
*** 277,282 ****
  
  
! static Py_complex c_tan(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 262,266 ----
  
  
! static Py_complex c_tan(Py_complex x)
  {
  	Py_complex r;
***************
*** 304,309 ****
  
  
! static Py_complex c_tanh(x)
! 	Py_complex x;
  {
  	Py_complex r;
--- 288,292 ----
  
  
! static Py_complex c_tanh(Py_complex x)
  {
  	Py_complex r;
***************
*** 346,352 ****
  
  static PyObject *
! math_1(args, func)
! 	PyObject *args;
! 	Py_complex (*func)(Py_complex);
  {
  	Py_complex x;
--- 329,333 ----
  
  static PyObject *
! math_1(PyObject *args, Py_complex (*func)(Py_complex))
  {
  	Py_complex x;
***************
*** 366,370 ****
  
  #define FUNC1(stubname, func) \
! 	static PyObject * stubname(self, args) PyObject *self, *args; { \
  		return math_1(args, func); \
  	}
--- 347,351 ----
  
  #define FUNC1(stubname, func) \
! 	static PyObject * stubname(PyObject *self, PyObject *args) { \
  		return math_1(args, func); \
  	}