[Python-checkins] CVS: python/dist/src/Mac/Modules/mlte Mltemodule.c,1.4,1.5 mltescan.py,1.4,1.5
Jack Jansen
jackjansen@users.sourceforge.net
Fri, 03 Aug 2001 08:34:31 -0700
Update of /cvsroot/python/python/dist/src/Mac/Modules/mlte
In directory usw-pr-cvs1:/tmp/cvs-serv18176
Modified Files:
Mltemodule.c mltescan.py
Log Message:
TXNTSMCheck isn't available under Mach-O Carbon.
Index: Mltemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/Mltemodule.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Mltemodule.c 2001/07/16 21:58:35 1.4
--- Mltemodule.c 2001/08/03 15:34:29 1.5
***************
*** 20,24 ****
#include <MacTextEditor.h>
#else
! #include <xxxx.h>
#endif
--- 20,24 ----
#include <MacTextEditor.h>
#else
! #include <Carbon/Carbon.h>
#endif
***************
*** 230,233 ****
--- 230,234 ----
}
+ #if !TARGET_API_MAC_OSX
static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
{
***************
*** 245,248 ****
--- 246,250 ----
return _res;
}
+ #endif
static PyObject *TXNObj_TXNSelectAll(TXNObjectObject *_self, PyObject *_args)
***************
*** 947,952 ****
--- 949,956 ----
{"TXNClick", (PyCFunction)TXNObj_TXNClick, 1,
"(EventRecord iEvent) -> None"},
+ #if !TARGET_API_MAC_OSX
{"TXNTSMCheck", (PyCFunction)TXNObj_TXNTSMCheck, 1,
"(EventRecord iEvent) -> (Boolean _rv)"},
+ #endif
{"TXNSelectAll", (PyCFunction)TXNObj_TXNSelectAll, 1,
"() -> None"},
Index: mltescan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltescan.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mltescan.py 2001/07/16 21:58:40 1.4
--- mltescan.py 2001/08/03 15:34:29 1.5
***************
*** 77,81 ****
def makegreylist(self):
! return []
def makeblacklisttypes(self):
--- 77,85 ----
def makegreylist(self):
! return [
! ('#if !TARGET_API_MAC_OSX', [
! 'TXNTSMCheck',
! ])]
!
def makeblacklisttypes(self):