diff options
author | chriseth <chris@ethereum.org> | 2017-08-29 20:07:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 20:07:24 +0800 |
commit | 2d39a42d37cd03e62d0295e8137f2c411b9b1b9f (patch) | |
tree | 40f0db81ff5be70cf999708b8094b1cd896cd66f /libsolidity | |
parent | 21bc6fd3051e2a751767ebd7ac3acaa9ed8ba112 (diff) | |
parent | 7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (diff) | |
download | dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.gz dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.bz2 dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.lz dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.xz dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.zst dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.zip |
Merge pull request #2843 from ethereum/anonymous-cleanup
Move all file specific globals to anonymous namespace
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 5 | ||||
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 65b09840..15475034 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -304,6 +304,9 @@ MemberList::MemberMap Type::boundFunctions(Type const& _type, ContractDefinition return members; } +namespace +{ + bool isValidShiftAndAmountType(Token::Value _operator, Type const& _shiftAmountType) { // Disable >>> here. @@ -317,6 +320,8 @@ bool isValidShiftAndAmountType(Token::Value _operator, Type const& _shiftAmountT return false; } +} + IntegerType::IntegerType(int _bits, IntegerType::Modifier _modifier): m_bits(_bits), m_modifier(_modifier) { diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index e53f1b94..24d3d959 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -39,6 +39,9 @@ using namespace std; using namespace dev; using namespace dev::solidity; +namespace +{ + /** * Simple helper class to ensure that the stack height is the same at certain places in the code. */ @@ -53,6 +56,8 @@ private: unsigned stackHeight; }; +} + void ContractCompiler::compileContract( ContractDefinition const& _contract, std::map<const ContractDefinition*, eth::Assembly const*> const& _contracts |