fix pl-read.c

This commit is contained in:
Vitor Santos Costa 2011-03-24 22:23:26 +00:00
parent 636d66d7ad
commit 0bd0936683

View File

@ -331,9 +331,6 @@ initIO()
streamAliases = newHTable(16); streamAliases = newHTable(16);
streamContext = newHTable(16); streamContext = newHTable(16);
PL_register_blob_type(&stream_blob); PL_register_blob_type(&stream_blob);
#if __YAP_PROLOG__
init_yap();
#endif
#ifdef __unix__ #ifdef __unix__
{ int fd; { int fd;
@ -343,6 +340,10 @@ initIO()
} }
#endif #endif
ResetTty(); ResetTty();
#if __YAP_PROLOG__
/* needs to be done after tty hacking */
init_yap();
#endif
Sclosehook(freeStream); Sclosehook(freeStream);