A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2000-May/011024.html below:

[Python-checkins] CVS: python/dist/src/Modules mathmodule.c,2.44,2.45

[Python-checkins] CVS: python/dist/src/Modules mathmodule.c,2.44,2.45Guido van Rossum python-dev@python.org
Thu, 11 May 2000 14:40:46 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
	mathmodule.c 
Log Message:
The addition of rint() (by Peter Schneider-Kamp; I forgot to mention
that before) in the previous patch has one problem; rint() is not in
the C math library on all platforms (e.g. not for VC++).  Make it
conditional on HAVE_RINT.


Index: mathmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/mathmodule.c,v
retrieving revision 2.44
retrieving revision 2.45
diff -C2 -r2.44 -r2.45
*** mathmodule.c	2000/05/11 18:19:42	2.44
--- mathmodule.c	2000/05/11 18:40:42	2.45
***************
*** 157,162 ****
--- 157,164 ----
        "pow(x,y)\n\nReturn x**y.")
  #endif
+ #ifdef HAVE_RINT
  FUNC1(math_rint, rint, math_rint_doc,
        "rint(x)\n\nReturn the integer nearest to x as a real.")
+ #endif
  FUNC1(math_sin, sin, math_sin_doc,
        "sin(x)\n\nReturn the sine of x.")
***************
*** 270,274 ****
--- 272,278 ----
  	{"modf",	math_modf,	0,	math_modf_doc},
  	{"pow",		math_pow,	0,	math_pow_doc},
+ #ifdef HAVE_RINT
  	{"rint",	math_rint,	0,	math_rint_doc},
+ #endif
  	{"sin",		math_sin,	0,	math_sin_doc},
  	{"sinh",	math_sinh,	0,	math_sinh_doc},




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4