summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-09-07 14:32:49 (GMT)
committerGuido van Rossum <guido@python.org>1994-09-07 14:32:49 (GMT)
commite4485b064d46ad8739df2919192ae0b488de88ba (patch)
treef42fbb5793179cf8aadbea190be09424d4bf0d0d /Modules/_cursesmodule.c
parenta1426136786711bae9a5a576a0e4fbf27979cac9 (diff)
downloadcpython-e4485b064d46ad8739df2919192ae0b488de88ba.zip
cpython-e4485b064d46ad8739df2919192ae0b488de88ba.tar.gz
cpython-e4485b064d46ad8739df2919192ae0b488de88ba.tar.bz2
Setup.in: added tkinter; rearranged the definition of PYTHONPATH so
that the module-specific components are in the section for that module. cursesmodule.c: patched it so it actually works. tkintermodule.c: call Py_AtExit instead of atexit(). signalmodule.c: converted to new naming style; added BGN/END SAVE around pause() call. socketmodule.c: added setblocking() after Tommy Burnette.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index e485936..9f0bec9 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1033,6 +1033,8 @@ static PyTypeObject PyCursesPad_Type = {
/* -------------------------------------------------------*/
+static PyObject *ModDict;
+
static PyObject *
PyCurses_InitScr(self, args)
PyObject * self;
@@ -1052,7 +1054,7 @@ PyCurses_InitScr(self, args)
/* This was moved from initcurses() because core dumped on SGI */
#define SetDictChar(string,ch) \
- PyDict_SetItemString(d,string,PyInt_FromLong(ch));
+ PyDict_SetItemString(ModDict,string,PyInt_FromLong(ch));
/* Here are some graphic symbols you can use */
SetDictChar("ACS_ULCORNER",(ACS_ULCORNER));
@@ -1387,6 +1389,7 @@ initcurses()
Py_INCREF(PyCurses_ERR);
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
+ ModDict = d; /* For PyCurses_InitScr */
/* Make the version available */
PyDict_SetItemString(d,"version",