[Python-checkins] CVS: python/dist/src/Modules cursesmodule.c,2.22,2.23 Setup.in,1.101,1.102
A.M. Kuchling
python-dev@python.org
2000年6月10日 16:12:34 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18349
Modified Files:
cursesmodule.c Setup.in
Log Message:
Renamed the C extension for ncurses support from 'curses' to '_curses'.
(The SourceForge admins have been asked to rename the ,v file.)
Index: cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cursesmodule.c,v
retrieving revision 2.22
retrieving revision 2.23
diff -C2 -r2.22 -r2.23
*** cursesmodule.c 2000年05月23日 16:24:54 2.22
--- cursesmodule.c 2000年06月10日 23:12:32 2.23
***************
*** 2164,2173 ****
void
! initcurses()
{
PyObject *m, *d, *v;
/* Create the module and add the functions */
! m = Py_InitModule("curses", PyCurses_methods);
/* Add some symbolic constants to the module */
--- 2164,2173 ----
void
! init_curses()
{
PyObject *m, *d, *v;
/* Create the module and add the functions */
! m = Py_InitModule("_curses", PyCurses_methods);
/* Add some symbolic constants to the module */
***************
*** 2176,2180 ****
/* For exception curses.error */
! PyCursesError = PyString_FromString("curses.error");
PyDict_SetItemString(d, "error", PyCursesError);
--- 2176,2180 ----
/* For exception curses.error */
! PyCursesError = PyString_FromString("_curses.error");
PyDict_SetItemString(d, "error", PyCursesError);
***************
*** 2252,2255 ****
/* Check for errors */
if (PyErr_Occurred())
! Py_FatalError("can't initialize module curses");
}
--- 2252,2255 ----
/* Check for errors */
if (PyErr_Occurred())
! Py_FatalError("can't initialize module _curses");
}
Index: Setup.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Setup.in,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -r1.101 -r1.102
*** Setup.in 2000年06月07日 09:12:54 1.101
--- Setup.in 2000年06月10日 23:12:32 1.102
***************
*** 315,324 ****
! # 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
# -L/usr/5lib before -lcurses).
! #curses cursesmodule.c -lcurses -ltermcap
--- 315,324 ----
! # 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