*polished input statement without parameter on windows.

This commit is contained in:
paladin-t 2015-12-01 17:14:50 +08:00
parent 021f552c67
commit 8178de92c4

View File

@ -10663,7 +10663,11 @@ int _std_input(mb_interpreter_t* s, void** l) {
obj = (_object_t*)(ast->data); obj = (_object_t*)(ast->data);
if(!obj || obj->type == _DT_EOS) { if(!obj || obj->type == _DT_EOS) {
#ifdef _MSC_VER
getch();
#else /* _MSC_VER */
_get_inputer(s)(line, sizeof(line)); _get_inputer(s)(line, sizeof(line));
#endif /* _MSC_VER */
goto _exit; goto _exit;
} }