[Python-checkins] CVS: python/dist/src/Mac/Modules/te _TEmodule.c,1.5,1.5.2.1
Jack Jansen
jackjansen@users.sourceforge.net
Wed, 19 Dec 2001 07:10:19 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/te
In directory usw-pr-cvs1:/tmp/cvs-serv12554/Modules/te
Modified Files:
Tag: r22rc1-branch
_TEmodule.c
Log Message:
Merged Mac subtree into the 22c1 branch.
Index: _TEmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/te/_TEmodule.c,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** _TEmodule.c 2001/12/08 18:02:53 1.5
--- _TEmodule.c 2001/12/19 15:10:17 1.5.2.1
***************
*** 6,11 ****
--- 6,15 ----
+ #ifdef _WIN32
+ #include "pywintoolbox.h"
+ #else
#include "macglue.h"
#include "pymactoolbox.h"
+ #endif
/* Macro to test whether a weak-loaded CFM function exists */
***************
*** 961,964 ****
--- 965,993 ----
#endif
+ static PyObject *TE_LMGetWordRedraw(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ UInt8 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetWordRedraw();
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *TE_LMSetWordRedraw(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ UInt8 value;
+ if (!PyArg_ParseTuple(_args, "b",
+ &value))
+ return NULL;
+ LMSetWordRedraw(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
static PyObject *TE_as_TE(PyObject *_self, PyObject *_args)
{
***************
*** 1002,1005 ****
--- 1031,1038 ----
"(Handle value) -> None"},
#endif
+ {"LMGetWordRedraw", (PyCFunction)TE_LMGetWordRedraw, 1,
+ "() -> (UInt8 _rv)"},
+ {"LMSetWordRedraw", (PyCFunction)TE_LMSetWordRedraw, 1,
+ "(UInt8 value) -> None"},
{"as_TE", (PyCFunction)TE_as_TE, 1,
"(Handle h) -> (TEHandle _rv)"},