aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.h
diff options
context:
space:
mode:
authorVoR0220 <rj@erisindustries.com>2017-01-10 21:15:48 +0800
committerVoR0220 <rj@erisindustries.com>2017-01-10 21:17:11 +0800
commit8ace851831f63035174ae086bb415a0d2efb8277 (patch)
tree286109f416818528e230502f1b92543eba4ec55a /libsolidity/interface/CompilerStack.h
parent79dbd40096006eac2861dd86dd22fd0c9ab55c6c (diff)
downloaddexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar
dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.gz
dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.bz2
dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.lz
dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.xz
dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.tar.zst
dexon-solidity-8ace851831f63035174ae086bb415a0d2efb8277.zip
much smaller helper function
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r--libsolidity/interface/CompilerStack.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h
index f98a457a..ef0aa6fe 100644
--- a/libsolidity/interface/CompilerStack.h
+++ b/libsolidity/interface/CompilerStack.h
@@ -29,6 +29,7 @@
#include <vector>
#include <functional>
#include <boost/noncopyable.hpp>
+#include <boost/filesystem.hpp>
#include <json/json.h>
#include <libdevcore/Common.h>
#include <libdevcore/FixedHash.h>
@@ -239,7 +240,8 @@ private:
ContractDefinition const& _contract,
std::map<ContractDefinition const*, eth::Assembly const*>& _compiledContracts
);
-
+ /// Helper function to return path converted strings.
+ std::string sanitizePath(std::string const& _path) { return boost::filesystem::path(_path).generic_string(); }
void link();
Contract const& contract(std::string const& _contractName = "") const;