From 0bd093668313af22ee194c0688cee81ca43cc1ab Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Thu, 24 Mar 2011 22:23:26 +0000 Subject: [PATCH] fix pl-read.c --- packages/PLStream/pl-file.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/PLStream/pl-file.c b/packages/PLStream/pl-file.c index 56e9d0378..6b9af5e7b 100755 --- a/packages/PLStream/pl-file.c +++ b/packages/PLStream/pl-file.c @@ -331,9 +331,6 @@ initIO() streamAliases = newHTable(16); streamContext = newHTable(16); PL_register_blob_type(&stream_blob); -#if __YAP_PROLOG__ - init_yap(); -#endif #ifdef __unix__ { int fd; @@ -343,6 +340,10 @@ initIO() } #endif ResetTty(); +#if __YAP_PROLOG__ + /* needs to be done after tty hacking */ + init_yap(); +#endif Sclosehook(freeStream);