diff options
author | chriseth <chris@ethereum.org> | 2017-07-14 03:06:04 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-08-23 23:37:35 +0800 |
commit | 9ac2ac14c1819be2341c6947245bf63b02795528 (patch) | |
tree | 0f935509daf2d166a6095924530263059894a764 /solc/jsonCompiler.cpp | |
parent | ab5e3a8f6d9b92cef521b6855bf7ab649ebf751f (diff) | |
download | dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.tar dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.tar.gz dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.tar.bz2 dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.tar.lz dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.tar.xz dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.tar.zst dexon-solidity-9ac2ac14c1819be2341c6947245bf63b02795528.zip |
Rename read file callback.
Diffstat (limited to 'solc/jsonCompiler.cpp')
-rw-r--r-- | solc/jsonCompiler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index ab928ac0..684d49e4 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -41,9 +41,9 @@ typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, cha namespace { -ReadFile::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = nullptr) +ReadCallback::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = nullptr) { - ReadFile::Callback readCallback; + ReadCallback::Callback readCallback; if (_readCallback) { readCallback = [=](string const& _path) @@ -51,23 +51,23 @@ ReadFile::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = nullp char* contents_c = nullptr; char* error_c = nullptr; _readCallback(_path.c_str(), &contents_c, &error_c); - ReadFile::Result result; + ReadCallback::Result result; result.success = true; if (!contents_c && !error_c) { result.success = false; - result.contentsOrErrorMessage = "File not found."; + result.responseOrErrorMessage = "File not found."; } if (contents_c) { result.success = true; - result.contentsOrErrorMessage = string(contents_c); + result.responseOrErrorMessage = string(contents_c); free(contents_c); } if (error_c) { result.success = false; - result.contentsOrErrorMessage = string(error_c); + result.responseOrErrorMessage = string(error_c); free(error_c); } return result; |