Exemplo n.º 1
0
Arquivo: main.c Projeto: mk12/eva
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;
}
Exemplo n.º 2
0
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();
	}
}
Exemplo n.º 3
0
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();
}