diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-06-10 23:12:32 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-06-10 23:12:32 (GMT) |
commit | b7f198e01aa1abbb337289eaa9db0d139ae9de96 (patch) | |
tree | 38fc34473d2b49da9f6cd1d25697ee918e81215c | |
parent | e53903c6757e6516259b6d7066aa1c7d30342d82 (diff) | |
download | cpython-b7f198e01aa1abbb337289eaa9db0d139ae9de96.zip cpython-b7f198e01aa1abbb337289eaa9db0d139ae9de96.tar.gz cpython-b7f198e01aa1abbb337289eaa9db0d139ae9de96.tar.bz2 |
Renamed the C extension for ncurses support from 'curses' to '_curses'.
(The SourceForge admins have been asked to rename the ,v file.)
-rw-r--r-- | Modules/Setup.in | 8 | ||||
-rw-r--r-- | Modules/_cursesmodule.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Modules/Setup.in b/Modules/Setup.in index 6540a7d..312ac2e 100644 --- a/Modules/Setup.in +++ b/Modules/Setup.in @@ -314,12 +314,12 @@ rotor rotormodule.c # enigma-inspired encryption #syslog syslogmodule.c # syslog daemon interface -# Lance's curses module. This requires the System V version of -# curses, sometimes known as ncurses (e.g. on Linux, link with -# -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include +# Curses support, requring the System V version of curses, often +# provided by the ncurses library. e.g. on Linux, link with -lncurses +# instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include # -L/usr/5lib before -lcurses). -#curses cursesmodule.c -lcurses -ltermcap +#_curses _cursesmodule.c -lcurses -ltermcap diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 8796aaf..3c1dd08 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2163,19 +2163,19 @@ static PyMethodDef PyCurses_methods[] = { /* Initialization function for the module */ void -initcurses() +init_curses() { PyObject *m, *d, *v; /* Create the module and add the functions */ - m = Py_InitModule("curses", PyCurses_methods); + m = Py_InitModule("_curses", PyCurses_methods); /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); ModDict = d; /* For PyCurses_InitScr */ /* For exception curses.error */ - PyCursesError = PyString_FromString("curses.error"); + PyCursesError = PyString_FromString("_curses.error"); PyDict_SetItemString(d, "error", PyCursesError); /* Make the version available */ @@ -2251,5 +2251,5 @@ initcurses() /* Check for errors */ if (PyErr_Occurred()) - Py_FatalError("can't initialize module curses"); + Py_FatalError("can't initialize module _curses"); } |