carry your own backall, and remove some debugging stuff

This commit is contained in:
Vítor Santos Costa
2018-03-20 00:57:27 +00:00
parent 98d52ba347
commit ff149367e8
5 changed files with 9 additions and 708 deletions

View File

@@ -89,8 +89,9 @@ static bool getLine(int inp) {
char *myrl_line = NULL;
StreamDesc *rl_instream = YAP_RepStreamFromId(inp);
term_t ctk = python_acquire_GIL();
PyObject*prompt = PyUnicode_FromString( "?- "),
*msg = PyUnicode_FromString("");
fprintf(stderr,"in");
PyObject*prompt = PyUnicode_FromString( "?- "),
*msg = PyUnicode_FromString(" **input** ");
/* window of vulnerability opened */
myrl_line = PyUnicode_AsUTF8(PyObject_CallFunctionObjArgs(rl_instream->u.private_data,msg,prompt,NULL));
python_release_GIL(ctk);

File diff suppressed because one or more lines are too long