[Python-checkins] python/dist/src/Mac/Modules/evt _Evtmodule.c, 1.8, 1.9 evtsupport.py, 1.16, 1.17

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


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

Modified Files:
	_Evtmodule.c evtsupport.py 
Log Message:
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.


Index: _Evtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/evt/_Evtmodule.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** _Evtmodule.c	12 Dec 2002 10:31:50 -0000	1.8
--- _Evtmodule.c	19 Nov 2003 16:13:26 -0000	1.9
***************
*** 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 <Events.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: evtsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/evt/evtsupport.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** evtsupport.py	29 Nov 2002 23:40:43 -0000	1.16
--- evtsupport.py	19 Nov 2003 16:13:26 -0000	1.17
***************
*** 36,44 ****
  
  includestuff = includestuff + """
- #ifdef WITHOUT_FRAMEWORKS
- #include <Events.h>
- #else
  #include <Carbon/Carbon.h>
- #endif
  
  """
--- 36,40 ----





More information about the Python-checkins mailing list