mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move all file specific globals to anonymous namespace
This commit is contained in:
@@ -31,8 +31,8 @@ using namespace dev::test;
|
||||
|
||||
namespace // anonymous
|
||||
{
|
||||
h256 const EmptyTrie("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421");
|
||||
}
|
||||
|
||||
h256 const EmptyTrie("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421");
|
||||
|
||||
string getIPCSocketPath()
|
||||
{
|
||||
@@ -43,6 +43,8 @@ string getIPCSocketPath()
|
||||
return ipcPath;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ExecutionFramework::ExecutionFramework() :
|
||||
m_rpc(RPCSession::instance(getIPCSocketPath())),
|
||||
m_optimize(dev::test::Options::get().optimize),
|
||||
|
||||
@@ -40,6 +40,9 @@ typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, cha
|
||||
extern char const* compileStandard(char const* _input, CStyleReadFileCallback _readCallback);
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
bool quiet = false;
|
||||
|
||||
string contains(string const& _haystack, vector<string> const& _needles)
|
||||
@@ -169,6 +172,8 @@ void testCompiler()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
po::options_description options(
|
||||
|
||||
Reference in New Issue
Block a user