int main(int argc, char **argv) { setup_readline(); struct Environment *env = new_standard_environment(); bool success = process_args(argc, argv, env); release_environment(env); return success ? 0 : 1; }
initreadline(void) { PyObject *m; m = Py_InitModule4("readline", readline_methods, doc_module, (PyObject *)NULL, PYTHON_API_VERSION); if (isatty(fileno(stdin))) { PyOS_ReadlineFunctionPointer = call_readline; setup_readline(); } }
PyMODINIT_FUNC initreadline(void) { PyObject *m; m = Py_InitModule4("readline", readline_methods, doc_module, (PyObject *)NULL, PYTHON_API_VERSION); PyOS_ReadlineFunctionPointer = call_readline; setup_readline(); }