[Python-checkins] python/dist/src/Python modsupport.c, 2.69, 2.70 mystrtoul.c, 2.21, 2.22 pythonrun.c, 2.199, 2.200 traceback.c, 2.40, 2.41

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/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv18678/Python

Modified Files:
	modsupport.c mystrtoul.c pythonrun.c traceback.c 
Log Message:
Getting rid of support for the ancient Apple MPW compiler.


Index: modsupport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/modsupport.c,v
retrieving revision 2.69
retrieving revision 2.70
diff -C2 -d -r2.69 -r2.70
*** modsupport.c	24 Oct 2003 20:05:32 -0000	2.69
--- modsupport.c	19 Nov 2003 15:24:47 -0000	2.70
***************
*** 4,12 ****
  #include "Python.h"
  
- #ifdef MPW /* MPW pushes 'extended' for float and double types with varargs */
- typedef extended va_double;
- #else
  typedef double va_double;
- #endif
  
  /* Package context -- the full module name for package imports */
--- 4,8 ----

Index: mystrtoul.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/mystrtoul.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -d -r2.21 -r2.22
*** mystrtoul.c	1 Sep 2000 23:29:28 -0000	2.21
--- mystrtoul.c	19 Nov 2003 15:24:47 -0000	2.22
***************
*** 101,105 ****
  	temp = result;
  	result = result * base + c;
- #ifndef MPW
  	if(base == 10) {
  		if(((long)(result - c) / base != (long)temp))	/* overflow */
--- 101,104 ----
***************
*** 110,114 ****
  			ovf = 1;
  	}
- #endif
  	str++;
      }
--- 109,112 ----

Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.199
retrieving revision 2.200
diff -C2 -d -r2.199 -r2.200
*** pythonrun.c	13 Nov 2003 07:43:21 -0000	2.199
--- pythonrun.c	19 Nov 2003 15:24:47 -0000	2.200
***************
*** 1567,1582 ****
  }
  
- #ifdef MPW
- 
- /* Check for file descriptor connected to interactive device.
-    Pretend that stdin is always interactive, other files never. */
- 
- int
- isatty(int fd)
- {
- 	return fd == fileno(stdin);
- }
- 
- #endif
  
  /*
--- 1567,1570 ----

Index: traceback.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/traceback.c,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -d -r2.40 -r2.41
*** traceback.c	22 Feb 2003 13:07:53 -0000	2.40
--- traceback.c	19 Nov 2003 15:24:47 -0000	2.41
***************
*** 148,158 ****
  	if (filename == NULL || name == NULL)
  		return -1;
- #ifdef MPW
- 	/* This is needed by MPW's File and Line commands */
- #define FMT "  File \"%.500s\"; line %d # in %.500s\n"
- #else
  	/* This is needed by Emacs' compile command */
  #define FMT "  File \"%.500s\", line %d, in %.500s\n"
- #endif
  	xfp = fopen(filename, "r" PY_STDIOTEXTMODE);
  	if (xfp == NULL) {
--- 148,153 ----





More information about the Python-checkins mailing list