[Python-checkins] CVS: python/dist/src/Mac/Modules/evt _Evtmodule.c,1.2,1.2.8.1

Jack Jansen jackjansen@users.sourceforge.net
Thu, 29 Nov 2001 05:23:15 -0800


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

Modified Files:
      Tag: r22b2-branch
	_Evtmodule.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: _Evtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/evt/_Evtmodule.c,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -C2 -d -r1.2 -r1.2.8.1
*** _Evtmodule.c	2001/09/05 10:30:20	1.2
--- _Evtmodule.c	2001/11/29 13:23:13	1.2.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 ----