mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix spelling errors
This commit is contained in:
parent
32bec6b374
commit
a499ef16fa
@ -166,7 +166,7 @@ This section gives detailed instructions on how to update prior code for every b
|
|||||||
documentation so long as the notices are in the order they appear in the tuple return type.
|
documentation so long as the notices are in the order they appear in the tuple return type.
|
||||||
|
|
||||||
* Choose unique identifiers for variable declarations in inline assembly that do not conflict
|
* Choose unique identifiers for variable declarations in inline assembly that do not conflict
|
||||||
with declartions outside the inline assembly block.
|
with declarations outside the inline assembly block.
|
||||||
|
|
||||||
* Add ``virtual`` to every non-interface function you intend to override. Add ``virtual``
|
* Add ``virtual`` to every non-interface function you intend to override. Add ``virtual``
|
||||||
to all functions without implementation outside interfaces. For single inheritance, add
|
to all functions without implementation outside interfaces. For single inheritance, add
|
||||||
|
@ -435,10 +435,10 @@ map<u256, u256> Assembly::optimiseInternal(
|
|||||||
// This only modifies PushTags, we have to run again to actually remove code.
|
// This only modifies PushTags, we have to run again to actually remove code.
|
||||||
if (_settings.runDeduplicate)
|
if (_settings.runDeduplicate)
|
||||||
{
|
{
|
||||||
BlockDeduplicator dedup{m_items};
|
BlockDeduplicator deduplicator{m_items};
|
||||||
if (dedup.deduplicate())
|
if (deduplicator.deduplicate())
|
||||||
{
|
{
|
||||||
for (auto const& replacement: dedup.replacedTags())
|
for (auto const& replacement: deduplicator.replacedTags())
|
||||||
{
|
{
|
||||||
assertThrow(
|
assertThrow(
|
||||||
replacement.first <= size_t(-1) && replacement.second <= size_t(-1),
|
replacement.first <= size_t(-1) && replacement.second <= size_t(-1),
|
||||||
|
@ -250,7 +250,7 @@ struct ExpressionAnnotation: ASTAnnotation
|
|||||||
bool lValueOfOrdinaryAssignment = false;
|
bool lValueOfOrdinaryAssignment = false;
|
||||||
|
|
||||||
/// Types and - if given - names of arguments if the expr. is a function
|
/// Types and - if given - names of arguments if the expr. is a function
|
||||||
/// that is called, used for overload resoultion
|
/// that is called, used for overload resolution
|
||||||
std::optional<FuncCallArguments> arguments;
|
std::optional<FuncCallArguments> arguments;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ public:
|
|||||||
/// Appends code that computes the Keccak-256 hash of the topmost stack element of 32 byte type.
|
/// Appends code that computes the Keccak-256 hash of the topmost stack element of 32 byte type.
|
||||||
void computeHashStatic();
|
void computeHashStatic();
|
||||||
|
|
||||||
/// Apppends code that copies the code of the given contract to memory.
|
/// Appends code that copies the code of the given contract to memory.
|
||||||
/// Stack pre: Memory position
|
/// Stack pre: Memory position
|
||||||
/// Stack post: Updated memory position
|
/// Stack post: Updated memory position
|
||||||
/// @param creation if true, copies creation code, if false copies runtime code.
|
/// @param creation if true, copies creation code, if false copies runtime code.
|
||||||
|
@ -1912,7 +1912,7 @@ void ExpressionCompiler::endVisit(Identifier const& _identifier)
|
|||||||
// If the identifier is called right away, this code is executed in visit(FunctionCall...), because
|
// If the identifier is called right away, this code is executed in visit(FunctionCall...), because
|
||||||
// we want to avoid having a reference to the runtime function entry point in the
|
// we want to avoid having a reference to the runtime function entry point in the
|
||||||
// constructor context, since this would force the compiler to include unreferenced
|
// constructor context, since this would force the compiler to include unreferenced
|
||||||
// internal functions in the runtime contex.
|
// internal functions in the runtime context.
|
||||||
utils().pushCombinedFunctionEntryLabel(functionDef->resolveVirtual(m_context.mostDerivedContract()));
|
utils().pushCombinedFunctionEntryLabel(functionDef->resolveVirtual(m_context.mostDerivedContract()));
|
||||||
else if (auto variable = dynamic_cast<VariableDeclaration const*>(declaration))
|
else if (auto variable = dynamic_cast<VariableDeclaration const*>(declaration))
|
||||||
appendVariable(*variable, static_cast<Expression const&>(_identifier));
|
appendVariable(*variable, static_cast<Expression const&>(_identifier));
|
||||||
|
@ -178,7 +178,7 @@ bool isArtifactRequested(Json::Value const& _outputSelection, string const& _art
|
|||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
/// @a _outputSelection is a JSON object containining a two-level hashmap, where the first level is the filename,
|
/// @a _outputSelection is a JSON object containing a two-level hashmap, where the first level is the filename,
|
||||||
/// the second level is the contract name and the value is an array of artifact names to be requested for that contract.
|
/// the second level is the contract name and the value is an array of artifact names to be requested for that contract.
|
||||||
/// @a _file is the current file
|
/// @a _file is the current file
|
||||||
/// @a _contract is the current contract
|
/// @a _contract is the current contract
|
||||||
@ -229,7 +229,7 @@ bool isBinaryRequested(Json::Value const& _outputSelection)
|
|||||||
if (!_outputSelection.isObject())
|
if (!_outputSelection.isObject())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// This does not inculde "evm.methodIdentifiers" on purpose!
|
// This does not include "evm.methodIdentifiers" on purpose!
|
||||||
static vector<string> const outputsThatRequireBinaries{
|
static vector<string> const outputsThatRequireBinaries{
|
||||||
"*",
|
"*",
|
||||||
"ir", "irOptimized",
|
"ir", "irOptimized",
|
||||||
|
@ -11,3 +11,4 @@ compilability
|
|||||||
errorstring
|
errorstring
|
||||||
hist
|
hist
|
||||||
otion
|
otion
|
||||||
|
keypair
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
## You can pass a branch name as argument to this script (which, if no argument is given,
|
## You can pass a branch name as argument to this script (which, if no argument is given,
|
||||||
## will default to "develop").
|
## will default to "develop").
|
||||||
##
|
##
|
||||||
## If the gien branch is "release", the resulting package will be uplaoded to
|
## If the given branch is "release", the resulting package will be uploaded to
|
||||||
## ethereum/ethereum PPA, or ethereum/ethereum-dev PPA otherwise.
|
## ethereum/ethereum PPA, or ethereum/ethereum-dev PPA otherwise.
|
||||||
##
|
##
|
||||||
## The gnupg key for "builds@ethereum.org" has to be present in order to sign
|
## The gnupg key for "builds@ethereum.org" has to be present in order to sign
|
||||||
|
@ -193,7 +193,7 @@ contract ico is safeMath {
|
|||||||
|
|
||||||
function setICOEthPrice(uint256 value) external {
|
function setICOEthPrice(uint256 value) external {
|
||||||
/*
|
/*
|
||||||
Setting of the ICO ETC USD rates which can only be calle by a pre-defined address.
|
Setting of the ICO ETC USD rates which can only be called by a pre-defined address.
|
||||||
After this function is completed till the call of the next function (which is at least an exchangeRateDelay array) this rate counts.
|
After this function is completed till the call of the next function (which is at least an exchangeRateDelay array) this rate counts.
|
||||||
With this process avoiding the sudden rate changes.
|
With this process avoiding the sudden rate changes.
|
||||||
|
|
||||||
@ -221,8 +221,8 @@ contract ico is safeMath {
|
|||||||
/*
|
/*
|
||||||
Closing the ICO.
|
Closing the ICO.
|
||||||
It is only possible when the ICO period passed and only by the owner.
|
It is only possible when the ICO period passed and only by the owner.
|
||||||
The 96% of the whole amount of the token is generated to the address of the fundation.
|
The 96% of the whole amount of the token is generated to the address of the foundation.
|
||||||
Ethers which are situated in this contract will be sent to the address of the fundation.
|
Ethers which are situated in this contract will be sent to the address of the foundation.
|
||||||
*/
|
*/
|
||||||
require( msg.sender == owner );
|
require( msg.sender == owner );
|
||||||
require( block.number > icoDelay );
|
require( block.number > icoDelay );
|
||||||
|
@ -826,8 +826,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator)
|
|||||||
Instruction::JUMP,
|
Instruction::JUMP,
|
||||||
AssemblyItem(Tag, 3)
|
AssemblyItem(Tag, 3)
|
||||||
};
|
};
|
||||||
BlockDeduplicator dedup(input);
|
BlockDeduplicator deduplicator(input);
|
||||||
dedup.deduplicate();
|
deduplicator.deduplicate();
|
||||||
|
|
||||||
set<u256> pushTags;
|
set<u256> pushTags;
|
||||||
for (AssemblyItem const& item: input)
|
for (AssemblyItem const& item: input)
|
||||||
@ -857,8 +857,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator_assign_immutable_same)
|
|||||||
AssemblyItem(PushTag, 1),
|
AssemblyItem(PushTag, 1),
|
||||||
AssemblyItem(PushTag, 1),
|
AssemblyItem(PushTag, 1),
|
||||||
} + blocks;
|
} + blocks;
|
||||||
BlockDeduplicator dedup(input);
|
BlockDeduplicator deduplicator(input);
|
||||||
dedup.deduplicate();
|
deduplicator.deduplicate();
|
||||||
BOOST_CHECK_EQUAL_COLLECTIONS(input.begin(), input.end(), output.begin(), output.end());
|
BOOST_CHECK_EQUAL_COLLECTIONS(input.begin(), input.end(), output.begin(), output.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -876,8 +876,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator_assign_immutable_different_value)
|
|||||||
AssemblyItem{AssignImmutable, 0x1234},
|
AssemblyItem{AssignImmutable, 0x1234},
|
||||||
Instruction::JUMP
|
Instruction::JUMP
|
||||||
};
|
};
|
||||||
BlockDeduplicator dedup(input);
|
BlockDeduplicator deduplicator(input);
|
||||||
BOOST_CHECK(!dedup.deduplicate());
|
BOOST_CHECK(!deduplicator.deduplicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(block_deduplicator_assign_immutable_different_hash)
|
BOOST_AUTO_TEST_CASE(block_deduplicator_assign_immutable_different_hash)
|
||||||
@ -894,8 +894,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator_assign_immutable_different_hash)
|
|||||||
AssemblyItem{AssignImmutable, 0xABCD},
|
AssemblyItem{AssignImmutable, 0xABCD},
|
||||||
Instruction::JUMP
|
Instruction::JUMP
|
||||||
};
|
};
|
||||||
BlockDeduplicator dedup(input);
|
BlockDeduplicator deduplicator(input);
|
||||||
BOOST_CHECK(!dedup.deduplicate());
|
BOOST_CHECK(!deduplicator.deduplicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(block_deduplicator_loops)
|
BOOST_AUTO_TEST_CASE(block_deduplicator_loops)
|
||||||
@ -920,8 +920,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator_loops)
|
|||||||
AssemblyItem(PushTag, 2),
|
AssemblyItem(PushTag, 2),
|
||||||
Instruction::JUMP,
|
Instruction::JUMP,
|
||||||
};
|
};
|
||||||
BlockDeduplicator dedup(input);
|
BlockDeduplicator deduplicator(input);
|
||||||
dedup.deduplicate();
|
deduplicator.deduplicate();
|
||||||
|
|
||||||
set<u256> pushTags;
|
set<u256> pushTags;
|
||||||
for (AssemblyItem const& item: input)
|
for (AssemblyItem const& item: input)
|
||||||
|
Loading…
Reference in New Issue
Block a user