summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-03 15:34:29 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-03 15:34:29 (GMT)
commit03b33effc77784d1ac7039c654ea5f1800f76f00 (patch)
tree9a913e82b91b943163ac486ec658436f4f7cd80b /Mac
parentca06bc642326f980485168eb1b6c8f88071e7b12 (diff)
downloadcpython-03b33effc77784d1ac7039c654ea5f1800f76f00.zip
cpython-03b33effc77784d1ac7039c654ea5f1800f76f00.tar.gz
cpython-03b33effc77784d1ac7039c654ea5f1800f76f00.tar.bz2
TXNTSMCheck isn't available under Mach-O Carbon.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/mlte/Mltemodule.c6
-rw-r--r--Mac/Modules/mlte/mltescan.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/Mac/Modules/mlte/Mltemodule.c b/Mac/Modules/mlte/Mltemodule.c
index d2aaec4..d3ff4d0 100644
--- a/Mac/Modules/mlte/Mltemodule.c
+++ b/Mac/Modules/mlte/Mltemodule.c
@@ -19,7 +19,7 @@
#ifdef WITHOUT_FRAMEWORKS
#include <MacTextEditor.h>
#else
-#include <xxxx.h>
+#include <Carbon/Carbon.h>
#endif
/* For now we declare them forward here. They'll go to mactoolbox later */
@@ -229,6 +229,7 @@ static PyObject *TXNObj_TXNClick(TXNObjectObject *_self, PyObject *_args)
return _res;
}
+#if !TARGET_API_MAC_OSX
static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
@@ -244,6 +245,7 @@ static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
_rv);
return _res;
}
+#endif
static PyObject *TXNObj_TXNSelectAll(TXNObjectObject *_self, PyObject *_args)
{
@@ -946,8 +948,10 @@ static PyMethodDef TXNObj_methods[] = {
"(RgnHandle ioCursorRgn) -> None"},
{"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"},
{"TXNFocus", (PyCFunction)TXNObj_TXNFocus, 1,
diff --git a/Mac/Modules/mlte/mltescan.py b/Mac/Modules/mlte/mltescan.py
index f9c5a6e..ae45f79 100644
--- a/Mac/Modules/mlte/mltescan.py
+++ b/Mac/Modules/mlte/mltescan.py
@@ -76,7 +76,11 @@ MovieFileType = FOUR_CHAR_CODE('moov')
]
def makegreylist(self):
- return []
+ return [
+ ('#if !TARGET_API_MAC_OSX', [
+ 'TXNTSMCheck',
+ ])]
+
def makeblacklisttypes(self):
return [