[Python-checkins] CVS: python/dist/src/Mac/Modules/win _Winmodule.c,1.2,1.3

Jack Jansen jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 03:29:18 -0700


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

Modified Files:
	_Winmodule.c 
Log Message:
Shut up many more gcc warnings.

Index: _Winmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/win/_Winmodule.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _Winmodule.c	2001/09/04 22:16:59	1.2
--- _Winmodule.c	2001/09/05 10:29:15	1.3
***************
*** 6,11 ****
--- 6,15 ----
  
  
+ #ifdef _WIN32
+ #include "pywintoolbox.h"
+ #else
  #include "macglue.h"
  #include "pymactoolbox.h"
+ #endif
  
  /* Macro to test whether a weak-loaded CFM function exists */
***************
*** 2126,2130 ****
  {
  	char buf[100];
! 	sprintf(buf, "<Window object at 0x%08.8x for 0x%08.8x>", self, self->ob_itself);
  	return PyString_FromString(buf);
  }
--- 2130,2134 ----
  {
  	char buf[100];
! 	sprintf(buf, "<Window object at 0x%8.8x for 0x%8.8x>", (unsigned)self, (unsigned)self->ob_itself);
  	return PyString_FromString(buf);
  }
***************
*** 2644,2648 ****
  	if ( !PyArg_ParseTuple(_args, "i", &ptr) )
  		return NULL;
! 	return WinObj_WhichWindow((WindowPtr)ptr);
  
  }
--- 2648,2653 ----
  	if ( !PyArg_ParseTuple(_args, "i", &ptr) )
  		return NULL;
! 	_res = WinObj_WhichWindow((WindowPtr)ptr);
! 	return _res;
  
  }