[Python-checkins] python/dist/src/Mac/Modules/snd _Sndmodule.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/snd
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/snd

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


Index: _Sndmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/snd/_Sndmodule.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** _Sndmodule.c	19 Dec 2002 21:24:35 -0000	1.14
--- _Sndmodule.c	23 Dec 2002 23:16:25 -0000	1.15
***************
*** 79,83 ****
  	SndDisposeChannel(self->ob_itself, 1);
  	Py_XDECREF(self->ob_callback);
! 	PyObject_Del(self);
  }
  
--- 79,83 ----
  	SndDisposeChannel(self->ob_itself, 1);
  	Py_XDECREF(self->ob_callback);
! 	PyObject_Free((PyObject *)self);
  }
  
***************
*** 311,315 ****
  	Py_XDECREF(self->ob_completion);
  	Py_XDECREF(self->ob_interrupt);
! 	PyObject_Del(self);
  }
  
--- 311,315 ----
  	Py_XDECREF(self->ob_completion);
  	Py_XDECREF(self->ob_interrupt);
! 	PyObject_Free((PyObject *)self);
  }
  
***************
*** 1143,1146 ****
--- 1143,1147 ----
  		return;
  	SndChannel_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&SndChannel_Type) < 0) return;
  	Py_INCREF(&SndChannel_Type);
  	PyModule_AddObject(m, "SndChannel", (PyObject *)&SndChannel_Type);
***************
*** 1149,1152 ****
--- 1150,1154 ----
  	PyModule_AddObject(m, "SndChannelType", (PyObject *)&SndChannel_Type);
  	SPB_Type.ob_type = &PyType_Type;
+ 	if (PyType_Ready(&SPB_Type) < 0) return;
  	Py_INCREF(&SPB_Type);
  	PyModule_AddObject(m, "SPB", (PyObject *)&SPB_Type);