[Python-checkins] python/dist/src/Mac/Modules/res _Resmodule.c,1.18,1.19
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
2002年12月23日 15:16:26 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/res
In directory sc8-pr-cvs1:/tmp/cvs-serv31491/res
Modified Files:
_Resmodule.c
Log Message:
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Index: _Resmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/res/_Resmodule.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** _Resmodule.c 19 Dec 2002 21:24:35 -0000 1.18
--- _Resmodule.c 23 Dec 2002 23:16:24 -0000 1.19
***************
*** 102,106 ****
}
self->ob_itself = NULL;
! PyObject_Del(self);
}
--- 102,106 ----
}
self->ob_itself = NULL;
! self->ob_type->tp_free((PyObject *)self);
}
***************
*** 1745,1748 ****
--- 1745,1749 ----
return;
Resource_Type.ob_type = &PyType_Type;
+ if (PyType_Ready(&Resource_Type) < 0) return;
Py_INCREF(&Resource_Type);
PyModule_AddObject(m, "Resource", (PyObject *)&Resource_Type);