[Python-checkins] CVS: python/dist/src/Mac/Modules/te _TEmodule.c,1.3,1.3.8.1

Jack Jansen jackjansen@users.sourceforge.net
2001年11月29日 05:21:26 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/te
In directory usw-pr-cvs1:/tmp/cvs-serv22631/Python/Mac/Modules/te
Modified Files:
 Tag: r22b2-branch
	_TEmodule.c 
Log Message:
Use the WeakLink generators where it makes sense. This allows the resulting module to be imported on older versions of MacOS that do not support all routines encasulated in the module. Using a routine thats unavailable results in a RuntimeError, "Routine not available on this platform".
Index: _TEmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/te/_TEmodule.c,v
retrieving revision 1.3
retrieving revision 1.3.8.1
diff -C2 -d -r1.3 -r1.3.8.1
*** _TEmodule.c	2001年09月05日 10:29:21	1.3
--- _TEmodule.c	2001年11月29日 13:21:24	1.3.8.1
***************
*** 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 */
--- 6,11 ----
***************
*** 794,798 ****
 
 PyTypeObject TE_Type = {
! 	PyObject_HEAD_INIT(&PyType_Type)
 	0, /*ob_size*/
 	"TE", /*tp_name*/
--- 790,794 ----
 
 PyTypeObject TE_Type = {
! 	PyObject_HEAD_INIT(NULL)
 	0, /*ob_size*/
 	"TE", /*tp_name*/

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