[Python-checkins] python/dist/src/Mac/Modules/mlte _Mltemodule.c, 1.17, 1.18 mltesupport.py, 1.12, 1.13

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Wed Nov 19 11:14:03 EST 2003


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

Modified Files:
	_Mltemodule.c mltesupport.py 
Log Message:
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.


Index: _Mltemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/_Mltemodule.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** _Mltemodule.c	23 Dec 2002 23:16:23 -0000	1.17
--- _Mltemodule.c	19 Nov 2003 16:13:31 -0000	1.18
***************
*** 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 <MacTextEditor.h>
- #else
  #include <Carbon/Carbon.h>
- #endif
  
  /* For now we declare them forward here. They'll go to mactoolbox later */
--- 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>
  
  /* For now we declare them forward here. They'll go to mactoolbox later */

Index: mltesupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltesupport.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** mltesupport.py	3 Dec 2002 23:40:21 -0000	1.12
--- mltesupport.py	19 Nov 2003 16:13:31 -0000	1.13
***************
*** 21,29 ****
  
  includestuff = includestuff + """
- #ifdef WITHOUT_FRAMEWORKS
- #include <MacTextEditor.h>
- #else
  #include <Carbon/Carbon.h>
- #endif
  
  /* For now we declare them forward here. They'll go to mactoolbox later */
--- 21,25 ----





More information about the Python-checkins mailing list