aboutsummaryrefslogtreecommitdiffstats
path: root/solc/jsonCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-10 19:48:41 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-10 19:49:47 +0800
commit623b8eb107a97861e3e7e0c13acee39c8d5f4075 (patch)
tree9a6b09990052496a078d8cb115db35629c8b7063 /solc/jsonCompiler.cpp
parentfefb3fad6fa20b9c99dd987a7869c297b279032e (diff)
downloaddexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.tar
dexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.tar.gz
dexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.tar.bz2
dexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.tar.lz
dexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.tar.xz
dexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.tar.zst
dexon-solidity-623b8eb107a97861e3e7e0c13acee39c8d5f4075.zip
Pull out ReadFile from CompilerStack
Diffstat (limited to 'solc/jsonCompiler.cpp')
-rw-r--r--solc/jsonCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp
index 45322117..74d6a901 100644
--- a/solc/jsonCompiler.cpp
+++ b/solc/jsonCompiler.cpp
@@ -130,7 +130,7 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback
{
Json::Value output(Json::objectValue);
Json::Value errors(Json::arrayValue);
- CompilerStack::ReadFileCallback readCallback;
+ ReadFile::Callback readCallback;
if (_readCallback)
{
readCallback = [=](string const& _path)
@@ -138,7 +138,7 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback
char* contents_c = nullptr;
char* error_c = nullptr;
_readCallback(_path.c_str(), &contents_c, &error_c);
- CompilerStack::ReadFileResult result;
+ ReadFile::Result result;
result.success = true;
if (!contents_c && !error_c)
{