[Python-checkins] python/dist/src/Mac/Modules/dlg _Dlgmodule.c,1.16,1.17

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


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

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


Index: _Dlgmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/dlg/_Dlgmodule.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** _Dlgmodule.c	19 Dec 2002 21:24:31 -0000	1.16
--- _Dlgmodule.c	23 Dec 2002 23:16:22 -0000	1.17
***************
*** 173,177 ****
  {
  	DisposeDialog(self->ob_itself);
! 	PyObject_Del(self);
  }
  
--- 173,177 ----
  {
  	DisposeDialog(self->ob_itself);
! 	self->ob_type->tp_free((PyObject *)self);
  }
  
***************
*** 1591,1594 ****
--- 1591,1595 ----
  		return;
  	Dialog_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&Dialog_Type) < 0) return;
  	Py_INCREF(&Dialog_Type);
  	PyModule_AddObject(m, "Dialog", (PyObject *)&Dialog_Type);