зеркало из https://github.com/mozilla/pjs.git
EOF handling
This commit is contained in:
Родитель
d473e75f91
Коммит
1210745bf0
|
@ -200,7 +200,9 @@ registers, or set the value of a single register."},
|
|||
printFormat (stdOut, "%04X", (pc - iCode->its_iCode->begin()));
|
||||
stdOut << "]> ";
|
||||
|
||||
std::getline(mIn, line);
|
||||
if (std::getline(mIn, line).eof())
|
||||
std::exit(0);
|
||||
|
||||
if (line.size() == 0)
|
||||
line = lastLine;
|
||||
else
|
||||
|
|
|
@ -200,7 +200,9 @@ registers, or set the value of a single register."},
|
|||
printFormat (stdOut, "%04X", (pc - iCode->its_iCode->begin()));
|
||||
stdOut << "]> ";
|
||||
|
||||
std::getline(mIn, line);
|
||||
if (std::getline(mIn, line).eof())
|
||||
std::exit(0);
|
||||
|
||||
if (line.size() == 0)
|
||||
line = lastLine;
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче