[Python-checkins] python/dist/src/Mac/Modules/te _TEmodule.c,1.14,1.15

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Mon, 23 Dec 2002 15:16:27 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/te
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/te

Modified Files:
	_TEmodule.c 
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
  deallocator calls.


Index: _TEmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/te/_TEmodule.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** _TEmodule.c	19 Dec 2002 21:24:35 -0000	1.14
--- _TEmodule.c	23 Dec 2002 23:16:25 -0000	1.15
***************
*** 101,105 ****
  {
  	TEDispose(self->ob_itself);
! 	PyObject_Del(self);
  }
  
--- 101,105 ----
  {
  	TEDispose(self->ob_itself);
! 	self->ob_type->tp_free((PyObject *)self);
  }
  
***************
*** 1328,1331 ****
--- 1328,1332 ----
  		return;
  	TE_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&TE_Type) < 0) return;
  	Py_INCREF(&TE_Type);
  	PyModule_AddObject(m, "TE", (PyObject *)&TE_Type);