[Informixdb-cvs] informixdb/ext _informixdb.ec,1.76,1.77
Brought to you by:
chaese,
f-apolloner
From: Carsten H. <ch...@us...> - 2006-11-03 03:35:12
|
Update of /cvsroot/informixdb/informixdb/ext In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv16910/ext Modified Files: _informixdb.ec Log Message: defer initializers that MinGW doesn't recognize as constants to allow compiling with MinGW Index: _informixdb.ec =================================================================== RCS file: /cvsroot/informixdb/informixdb/ext/_informixdb.ec,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** _informixdb.ec 8 Oct 2006 04:10:39 -0000 1.76 --- _informixdb.ec 3 Nov 2006 03:35:09 -0000 1.77 *************** *** 400,406 **** 0, /* tp_dictoffset */ (initproc)Sblob_init, /* tp_init */ ! PyType_GenericAlloc, /* tp_alloc */ ! PyType_GenericNew, /* tp_new */ ! _PyObject_Del /* tp_free */ }; $endif; --- 400,406 ---- 0, /* tp_dictoffset */ (initproc)Sblob_init, /* tp_init */ ! DEFERRED_ADDRESS(PyType_GenericAlloc), /* tp_alloc */ ! DEFERRED_ADDRESS(PyType_GenericNew), /* tp_new */ ! DEFERRED_ADDRESS(_PyObject_Del) /* tp_free */ }; $endif; *************** *** 700,706 **** 0, /* tp_dictoffset */ (initproc)Cursor_init, /* tp_init */ ! PyType_GenericAlloc, /* tp_alloc */ ! PyType_GenericNew, /* tp_new */ ! _PyObject_Del /* tp_free */ }; --- 700,706 ---- 0, /* tp_dictoffset */ (initproc)Cursor_init, /* tp_init */ ! DEFERRED_ADDRESS(PyType_GenericAlloc), /* tp_alloc */ ! DEFERRED_ADDRESS(PyType_GenericNew), /* tp_new */ ! DEFERRED_ADDRESS(_PyObject_Del) /* tp_free */ }; *************** *** 960,966 **** 0, /* tp_dictoffset */ (initproc)Connection_init, /* tp_init */ ! PyType_GenericAlloc, /* tp_alloc */ ! PyType_GenericNew, /* tp_new */ ! _PyObject_Del /* tp_free */ }; --- 960,966 ---- 0, /* tp_dictoffset */ (initproc)Connection_init, /* tp_init */ ! DEFERRED_ADDRESS(PyType_GenericAlloc), /* tp_alloc */ ! DEFERRED_ADDRESS(PyType_GenericNew), /* tp_new */ ! DEFERRED_ADDRESS(_PyObject_Del) /* tp_free */ }; *************** *** 3318,3324 **** 0, /* tp_dictoffset */ (initproc)DBAPIType_init, /* tp_init */ ! PyType_GenericAlloc, /* tp_alloc */ ! PyType_GenericNew, /* tp_new */ ! _PyObject_Del /* tp_free */ }; --- 3318,3324 ---- 0, /* tp_dictoffset */ (initproc)DBAPIType_init, /* tp_init */ ! DEFERRED_ADDRESS(PyType_GenericAlloc), /* tp_alloc */ ! DEFERRED_ADDRESS(PyType_GenericNew), /* tp_new */ ! DEFERRED_ADDRESS(_PyObject_Del) /* tp_free */ }; *************** *** 3961,3966 **** --- 3961,3975 ---- Cursor_type.ob_type = &PyType_Type; + Cursor_type.tp_alloc = PyType_GenericAlloc; + Cursor_type.tp_new = PyType_GenericNew; + Cursor_type.tp_free = _PyObject_Del; Connection_type.ob_type = &PyType_Type; + Connection_type.tp_alloc = PyType_GenericAlloc; + Connection_type.tp_new = PyType_GenericNew; + Connection_type.tp_free = _PyObject_Del; DBAPIType_type.ob_type = &PyType_Type; + DBAPIType_type.tp_alloc = PyType_GenericAlloc; + DBAPIType_type.tp_new = PyType_GenericNew; + DBAPIType_type.tp_free = _PyObject_Del; Connection_getseters[0].closure = ExcWarning; *************** *** 3981,3984 **** --- 3990,3996 ---- $ifdef HAVE_ESQL9; Sblob_type.ob_type = &PyType_Type; + Sblob_type.tp_alloc = PyType_GenericAlloc; + Sblob_type.tp_new = PyType_GenericNew; + Sblob_type.tp_free = _PyObject_Del; PyType_Ready(&Sblob_type); Py_INCREF(&Sblob_type); |