[Python-checkins] python/dist/src/Mac/Modules/drag _Dragmodule.c,
1.14, 1.15 dragsupport.py, 1.12, 1.13
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/drag
In directory sc8-pr-cvs1:/tmp/cvs-serv27894/Mac/Modules/drag
Modified Files:
_Dragmodule.c dragsupport.py
Log Message:
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.
Index: _Dragmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/drag/_Dragmodule.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** _Dragmodule.c 23 Dec 2002 23:16:22 -0000 1.14
--- _Dragmodule.c 19 Nov 2003 16:13:25 -0000 1.15
***************
*** 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 <Drag.h>
- #else
#include <Carbon/Carbon.h>
- #endif
/* Callback glue routines */
--- 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>
/* Callback glue routines */
Index: dragsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/drag/dragsupport.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** dragsupport.py 3 Dec 2002 23:40:20 -0000 1.12
--- dragsupport.py 19 Nov 2003 16:13:26 -0000 1.13
***************
*** 45,53 ****
includestuff = includestuff + """
- #ifdef WITHOUT_FRAMEWORKS
- #include <Drag.h>
- #else
#include <Carbon/Carbon.h>
- #endif
/* Callback glue routines */
--- 45,49 ----
More information about the Python-checkins
mailing list