This commit is contained in:
Vitor Santos Costa 2018-08-01 03:08:10 +01:00
parent 22cefb0b9c
commit 8f5fd1ddc2
2 changed files with 3 additions and 3 deletions

View File

@ -374,7 +374,7 @@ set(YAP_FOUND ON)
set(YAP_MAJOR_VERSION 6)
set(YAP_MINOR_VERSION 4)
set(YAP_PATCH_VERSION 0)
set(YAP_PATCH_VERSION 1)
set(YAP_FULL_VERSION
${YAP_MAJOR_VERSION}.${YAP_MINOR_VERSION}.${YAP_PATCH_VERSION})

View File

@ -134,9 +134,9 @@ static bool pygetLine(StreamDesc *rl_iostream, int sno) {
PyObject *user_line;
StreamDesc *s = YAP_GetStreamFromId(sno);
//term_t tg = python_acquire_GIL();
if (1) { //!strcmp(RepAtom(s->name)->StrOfAE,"input")) {
if (!strcmp(RepAtom(s->name)->StrOfAE,"input") && ) {
// note that input may change
PyObject *pystream = PyDict_GetItemString( Py_B``, "input");
PyObject *pystream = PyDict_GetItemString( Py_Builtins, "input");
if (pystream == NULL) {
if ((err = PyErr_Occurred())) {
PyErr_Print();