[Python-checkins] python/dist/src/Mac/Modules/qdoffs _Qdoffsmodule.c,1.12,1.13

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


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

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


Index: _Qdoffsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qdoffs/_Qdoffsmodule.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** _Qdoffsmodule.c	19 Dec 2002 21:24:34 -0000	1.12
--- _Qdoffsmodule.c	23 Dec 2002 23:16:24 -0000	1.13
***************
*** 74,78 ****
  {
  	DisposeGWorld(self->ob_itself);
! 	PyObject_Del(self);
  }
  
--- 74,78 ----
  {
  	DisposeGWorld(self->ob_itself);
! 	self->ob_type->tp_free((PyObject *)self);
  }
  
***************
*** 711,714 ****
--- 711,715 ----
  		return;
  	GWorld_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&GWorld_Type) < 0) return;
  	Py_INCREF(&GWorld_Type);
  	PyModule_AddObject(m, "GWorld", (PyObject *)&GWorld_Type);