[Python-checkins] python/dist/src/Mac/Modules/ah _AHmodule.c, 1.2, 1.3 ahsupport.py, 1.2, 1.3

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Wed Nov 19 11:13:55 EST 2003


Update of /cvsroot/python/python/dist/src/Mac/Modules/ah
In directory sc8-pr-cvs1:/tmp/cvs-serv27894/Mac/Modules/ah

Modified Files:
	_AHmodule.c ahsupport.py 
Log Message:
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.


Index: _AHmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ah/_AHmodule.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _AHmodule.c	30 Aug 2002 23:02:09 -0000	1.2
--- _AHmodule.c	19 Nov 2003 16:13:22 -0000	1.3
***************
*** 15,29 ****
  /* Macro to test whether a weak-loaded CFM function exists */
  #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL )  {\
!     	PyErr_SetString(PyExc_NotImplementedError, \
!     	"Not available in this shared library/OS version"); \
!     	return NULL; \
      }} while(0)
  
  
- #ifdef WITHOUT_FRAMEWORKS
- #include <AppleHelp.h>
- #else
  #include <Carbon/Carbon.h>
- #endif
  
  
--- 15,25 ----
  /* Macro to test whether a weak-loaded CFM function exists */
  #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL )  {\
!         PyErr_SetString(PyExc_NotImplementedError, \
!         "Not available in this shared library/OS version"); \
!         return NULL; \
      }} while(0)
  
  
  #include <Carbon/Carbon.h>
  
  

Index: ahsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ah/ahsupport.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ahsupport.py	30 Aug 2002 23:02:09 -0000	1.2
--- ahsupport.py	19 Nov 2003 16:13:23 -0000	1.3
***************
*** 21,29 ****
  
  includestuff = includestuff + """
- #ifdef WITHOUT_FRAMEWORKS
- #include <AppleHelp.h>
- #else
  #include <Carbon/Carbon.h>
- #endif
  
  """
--- 21,25 ----





More information about the Python-checkins mailing list