summaryrefslogtreecommitdiff
path: root/Modules/_curses_panel.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-22 15:29:14 +0000
committerGuido van Rossum <guido@python.org>2001-01-22 15:29:14 +0000
commita120ffcf1245d8abb8ecc6984a8f4aad61ab5af4 (patch)
treea37f7bbdea43de66fd98c7a3b8c4235b896b3b15 /Modules/_curses_panel.c
parent31584cb43d1cb8b393b110ef0b994fd431d7dbb6 (diff)
downloadcpython-git-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.tar.gz
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Diffstat (limited to 'Modules/_curses_panel.c')
-rw-r--r--Modules/_curses_panel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c
index e06302df15..4b97aa72b7 100644
--- a/Modules/_curses_panel.c
+++ b/Modules/_curses_panel.c
@@ -350,7 +350,7 @@ PyCursesPanel_GetAttr(PyCursesPanelObject *self, char *name)
/* -------------------------------------------------------*/
PyTypeObject PyCursesPanel_Type = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"curses panel", /*tp_name*/
sizeof(PyCursesPanelObject), /*tp_basicsize*/
@@ -469,11 +469,14 @@ static PyMethodDef PyCurses_methods[] = {
/* 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 */