mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CommonIO: Replace readStandardInput() with readUntilEnd() with a configurable stream
This commit is contained in:
@@ -640,7 +640,7 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings()
|
||||
}
|
||||
|
||||
if (addStdin)
|
||||
m_fileReader.setSource(g_stdinFileName, readStandardInput());
|
||||
m_fileReader.setSource(g_stdinFileName, readUntilEnd(cin));
|
||||
|
||||
if (m_fileReader.sourceCodes().size() == 0)
|
||||
{
|
||||
@@ -1255,7 +1255,7 @@ bool CommandLineInterface::processInput()
|
||||
}
|
||||
string input;
|
||||
if (jsonFile.empty())
|
||||
input = readStandardInput();
|
||||
input = readUntilEnd(cin);
|
||||
else
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user