[Python-checkins] CVS: python/dist/src/Mac/Modules/qdoffs _Qdoffsmodule.c,1.2,1.3
Jack Jansen
jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 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;
}