[Python-checkins] python/dist/src/Mac/Modules macmodule.c,1.51,1.52

jackjansen@sourceforge.net jackjansen@sourceforge.net
Thu, 11 Apr 2002 13:46:14 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv8941/Python/Mac/Modules

Modified Files:
	macmodule.c 
Log Message:
Got rid of ifdefs for long-obsolete GUSI versions.

Index: macmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/macmodule.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** macmodule.c	21 Mar 2002 21:09:36 -0000	1.51
--- macmodule.c	11 Apr 2002 20:46:11 -0000	1.52
***************
*** 47,53 ****
  #undef S_IEXEC
  
- #ifdef USE_GUSI1
- #include <GUSI.h>
- #endif /* USE_GUSI1 */
  #include <sys/types.h>
  #include <sys/stat.h>
--- 47,50 ----
***************
*** 182,196 ****
  	PyObject *args;
  {
- #ifdef USE_GUSI1
- 	PyObject *rv;
- 	
- 	/* Change MacOS's idea of wd too */
- 	rv = mac_1str(args, chdir);
- 	PyMac_FixGUSIcd();
- 	return rv;
- #else
  	return mac_1str(args, chdir);
- #endif
- 
  }
  
--- 179,183 ----
***************
*** 206,214 ****
  	res = close(fd);
  	Py_END_ALLOW_THREADS
- #ifndef USE_GUSI1
- 	/* GUSI gives surious errors here? */
  	if (res < 0)
  		return mac_error();
- #endif
  	Py_INCREF(Py_None);
  	return Py_None;
--- 193,198 ----
***************
*** 386,394 ****
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
- #ifdef USE_GUSI1
- 	res = mkdir(path);
- #else
  	res = mkdir(path, mode);
- #endif
  	Py_END_ALLOW_THREADS
  	if (res < 0)
--- 370,374 ----