From: Armin R. <ar...@us...> - 2004-08-20 12:19:01
|
Update of /cvsroot/psyco/psyco/c/Objects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22575/Objects Modified Files: compactobject.c Log Message: For compilation on Windows. Index: compactobject.c =================================================================== RCS file: /cvsroot/psyco/psyco/c/Objects/compactobject.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** compactobject.c 11 Aug 2004 23:03:38 -0000 1.1 --- compactobject.c 20 Aug 2004 12:18:51 -0000 1.2 *************** *** 576,582 **** 0, /* tp_dictoffset */ 0, /* tp_init */ ! PyType_GenericAlloc, /* tp_alloc */ compact_new, /* tp_new */ ! PyObject_GC_Del, /* tp_free */ }; --- 576,582 ---- 0, /* tp_dictoffset */ 0, /* tp_init */ ! /*PyType_GenericAlloc set below*/ 0, /* tp_alloc */ compact_new, /* tp_new */ ! /*PyObject_GC_Del set below*/ 0, /* tp_free */ }; *************** *** 585,588 **** --- 585,590 ---- PyCompact_EmptyImpl = &k_empty_impl; PyCompact_Type.ob_type = &PyType_Type; + PyCompact_Type.tp_alloc = &PyType_GenericAlloc; + PyCompact_Type.tp_free = &PyObject_GC_Del; } |