[Python-checkins] python/dist/src/Mac/Modules/ctl _Ctlmodule.c,1.23,1.24

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/ctl
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/ctl

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


Index: _Ctlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ctl/_Ctlmodule.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** _Ctlmodule.c	19 Dec 2002 21:24:30 -0000	1.23
--- _Ctlmodule.c	23 Dec 2002 23:16:21 -0000	1.24
***************
*** 180,184 ****
  	Py_XDECREF(self->ob_callbackdict);
  	if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */
! 	PyObject_Del(self);
  }
  
--- 180,184 ----
  	Py_XDECREF(self->ob_callbackdict);
  	if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */
! 	self->ob_type->tp_free((PyObject *)self);
  }
  
***************
*** 5850,5853 ****
--- 5850,5854 ----
  		return;
  	Control_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&Control_Type) < 0) return;
  	Py_INCREF(&Control_Type);
  	PyModule_AddObject(m, "Control", (PyObject *)&Control_Type);