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

Jack Jansen jackjansen@users.sourceforge.net
2001年9月05日 03:29:45 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/qdoffs
In directory usw-pr-cvs1:/tmp/cvs-serv11357/python/Mac/Modules/qdoffs
Modified Files:
	_Qdoffsmodule.c 
Log Message:
Shut up many more gcc warnings.
Index: _Qdoffsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qdoffs/_Qdoffsmodule.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _Qdoffsmodule.c	2001年09月04日 22:17:41	1.2
--- _Qdoffsmodule.c	2001年09月05日 10:29:43	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 */
***************
*** 504,508 ****
 		return NULL;
 	cp = GetPixBaseAddr(pm)+from;
! 	return PyString_FromStringAndSize(cp, length);
 
 }
--- 508,513 ----
 		return NULL;
 	cp = GetPixBaseAddr(pm)+from;
! 	_res = PyString_FromStringAndSize(cp, length);
! 	return _res;
 
 }
***************
*** 521,525 ****
 	memcpy(cp, icp, length);
 	Py_INCREF(Py_None);
! 	return Py_None;
 
 }
--- 526,531 ----
 	memcpy(cp, icp, length);
 	Py_INCREF(Py_None);
! 	_res = Py_None;
! 	return _res;
 
 }

AltStyle によって変換されたページ (->オリジナル) /