From: Armin R. <ar...@us...> - 2004-08-03 14:57:01
|
Update of /cvsroot/psyco/psyco/c/Objects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2250 Modified Files: ptypeobject.c Log Message: In Stackless Python more types have their tp_init slot copied from the base object; so Psyco has to support the dummy base object_init(). Index: ptypeobject.c =================================================================== RCS file: /cvsroot/psyco/psyco/c/Objects/ptypeobject.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ptypeobject.c 17 Jan 2003 14:41:41 -0000 1.2 --- ptypeobject.c 3 Aug 2004 14:56:52 -0000 1.3 *************** *** 90,93 **** --- 90,99 ---- } + static bool pobject_init(PsycoObject* po, vinfo_t* vself, + vinfo_t* vargs, vinfo_t* vkwds) + { + return true; + } + #endif /* NEW_STYLE_TYPES */ *************** *** 98,101 **** --- 104,108 ---- #if NEW_STYLE_TYPES /* Python >= 2.2b1 */ Psyco_DefineMeta(PyType_Type.tp_call, ptype_call); + Psyco_DefineMeta(PyBaseObject_Type.tp_init, pobject_init); #endif } |