[Python-checkins] python/dist/src/Modules main.c, 1.80, 1.81 mathmodule.c, 2.72, 2.73

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Wed Nov 19 10:24:49 EST 2003


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv18678/Modules

Modified Files:
	main.c mathmodule.c 
Log Message:
Getting rid of support for the ancient Apple MPW compiler.


Index: main.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/main.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** main.c	18 Nov 2003 19:46:25 -0000	1.80
--- main.c	19 Nov 2003 15:24:46 -0000	1.81
***************
*** 328,332 ****
  		_setmode(fileno(stdout), O_BINARY);
  #endif
- #ifndef MPW
  #ifdef HAVE_SETVBUF
  		setvbuf(stdin,  (char *)NULL, _IONBF, BUFSIZ);
--- 328,331 ----
***************
*** 338,347 ****
  		setbuf(stderr, (char *)NULL);
  #endif /* !HAVE_SETVBUF */
- #else /* MPW */
- 		/* On MPW (3.2) unbuffered seems to hang */
- 		setvbuf(stdin,  (char *)NULL, _IOLBF, BUFSIZ);
- 		setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ);
- 		setvbuf(stderr, (char *)NULL, _IOLBF, BUFSIZ);
- #endif /* MPW */
  	}
  	else if (Py_InteractiveFlag) {
--- 337,340 ----

Index: mathmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mathmodule.c,v
retrieving revision 2.72
retrieving revision 2.73
diff -C2 -d -r2.72 -r2.73
*** mathmodule.c	12 Oct 2003 19:09:36 -0000	2.72
--- mathmodule.c	19 Nov 2003 15:24:46 -0000	2.73
***************
*** 122,132 ****
  FUNC2(hypot, hypot,
        "hypot(x,y)\n\nReturn the Euclidean distance, sqrt(x*x + y*y).")
- #ifdef MPW_3_1 /* This hack is needed for MPW 3.1 but not for 3.2 ... */
- FUNC2(pow, power,
-       "pow(x,y)\n\nReturn x**y (x to the power of y).")
- #else
  FUNC2(pow, pow,
        "pow(x,y)\n\nReturn x**y (x to the power of y).")
- #endif
  FUNC1(sin, sin,
        "sin(x)\n\nReturn the sine of x (measured in radians).")
--- 122,127 ----
***************
*** 191,203 ****
  		return NULL;
  	errno = 0;
- #ifdef MPW /* MPW C modf expects pointer to extended as second argument */
-         {
- 		extended e;
- 		x = modf(x, &e);
- 		y = e;
-         }
- #else
  	x = modf(x, &y);
- #endif
  	Py_SET_ERANGE_IF_OVERFLOW(x);
  	if (errno && is_error(x))
--- 186,190 ----





More information about the Python-checkins mailing list