[Python-checkins] CVS: python/dist/src/Mac/Modules/te _TEmodule.c,1.5,1.6

Jack Jansen jackjansen@users.sourceforge.net
Sun, 16 Dec 2001 12:18:42 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/te
In directory usw-pr-cvs1:/tmp/cvs-serv2764/Python/Mac/Modules/te

Modified Files:
	_TEmodule.c 
Log Message:
Adapted for Universal Headers 3.4

Index: _TEmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/te/_TEmodule.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** _TEmodule.c	2001/12/08 18:02:53	1.5
--- _TEmodule.c	2001/12/16 20:18:40	1.6
***************
*** 961,964 ****
--- 961,989 ----
  #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 ****
--- 1027,1034 ----
  	 "(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)"},