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

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


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

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