/* -------------------------------------------------------*/
PyTypeObject PyCursesPanel_Type = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"curses panel", /*tp_name*/
sizeof(PyCursesPanelObject), /*tp_basicsize*/
/* Initialization function for the module */
-void
+DL_EXPORT(void)
init_curses_panel(void)
{
PyObject *m, *d, *v;
+ /* Initialize object type */
+ PyCursesPanel_Type.ob_type = &PyType_Type;
+
import_curses();
/* Create the module and add the functions */
}
static PyTypeObject Dbmtype = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0,
"dbm",
sizeof(dbmobject),
initdbm(void) {
PyObject *m, *d, *s;
+ Dbmtype.ob_type = &PyType_Type;
m = Py_InitModule("dbm", dbmmodule_methods);
d = PyModule_GetDict(m);
if (DbmError == NULL)
}
static PyTypeObject Regextype = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"regex", /*tp_name*/
sizeof(regexobject), /*tp_size*/
int i;
char *s;
+ /* Initialize object type */
+ Regextype.ob_type = &PyType_Type;
+
m = Py_InitModule("regex", regex_global_methods);
d = PyModule_GetDict(m);
}
staticforward PyTypeObject SSL_Type = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"SSL", /*tp_name*/
sizeof(SSLObject), /*tp_basicsize*/
return;
#endif /* __TOS_OS2__ */
#endif /* MS_WINDOWS */
+#ifdef USE_SSL
+ SSL_Type.ob_type = &PyType_Type;
+#endif
m = Py_InitModule3("_socket", PySocket_methods, module_doc);
d = PyModule_GetDict(m);
PySocket_Error = PyErr_NewException("socket.error", NULL, NULL);