#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
/* 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 */
/* Check for errors */
if (PyErr_Occurred())
- Py_FatalError("can't initialize module curses");
+ Py_FatalError("can't initialize module _curses");
}