Commit Graph

5403 Commits

Author SHA1 Message Date
Denton Liu
bb62a8b3fd Replaced all tabs with spaces 2016-05-18 11:23:47 -04:00
Denton Liu
8bbe99ad11 More code-style corrections 2016-05-18 11:23:47 -04:00
chriseth
0a37072e4c Merge pull request #572 from Melvillian/fix-example-contract-abi
fix example solidity contract code by adding argument to constructor
2016-05-18 00:39:47 +02:00
chriseth
775b757d0e Merge pull request #545 from chriseth/accessFunLabels
Allow access to functions in inline assembly.
2016-05-17 23:59:13 +02:00
chriseth
e28604f0b0 Typo 2016-05-17 17:05:03 +02:00
chriseth
5bf059dc2a Merge pull request #501 from VoR0220/quitIfNoArguments
Make solc quit if no arguments are supplied to the compiler.
2016-05-17 17:02:51 +02:00
Paweł Bylica
77f3a85441 Merge pull request #566 from ethereum/msvc2015
Suppress a warning in LLL parser on MSVC 2015
2016-05-17 14:27:39 +02:00
Bob Summerwill
c1995e9dbb Merge pull request #575 from moneroexamples/fix_call_of_overloaded_gcc61
fix: error: call of overloaded ‘list(int, <brace-enclosed initializer…
2016-05-17 00:25:15 -07:00
moneroexample
9d237fbfdc fix: error: call of overloaded ‘list(int, <brace-enclosed initializer list>)’
Issue: https://github.com/ethereum/solidity/issues/574

Compilation of webthree-umbrella on Arch with gcc 6.1 results in the following
error:

/home/mwo/webthree-umbrella/solidity/libsolidity/analysis/NameAndTypeResolver.cpp:299:51: error: call of overloaded ‘list(int, <brace-enclosed initializer list>)’ is ambiguous
  list<list<ContractDefinition const*>> input(1, {});

This can be overcome by explicitly specifying initial value, for example:

  list<list<ContractDefinition const*>> input(1, list<ContractDefinition const*>{})
2016-05-17 13:27:39 +08:00
Alex Melville
38940ddfa5 fix example solidity contract code by adding argument to constructor 2016-05-15 17:16:44 -07:00
chriseth
4b445b898e Merge pull request #546 from chriseth/fixiszero
Correctly use not/bnot/iszero.
2016-05-14 00:58:55 +02:00
VoR0220
fb89e69061 much better and simpler way of handling this 2016-05-13 13:51:41 -05:00
chriseth
902f1458c6 Merge pull request #543 from raineorshine/patch-1
Add this.balance and this.send to units-and-global-variables.rst
2016-05-13 19:31:44 +02:00
Paweł Bylica
ca6a21bcd3 Suppress a warning in LLL parser on MSVC 2015 2016-05-13 15:38:23 +02:00
chriseth
c06051d38d Merge pull request #557 from Denton-L/scoping
Added Section about Scoping Behaviours
2016-05-12 23:07:52 +02:00
Denton Liu
20cec07b46 Removed unnecessary period 2016-05-12 13:25:00 -04:00
Denton Liu
7b6fd013a4 Added origin of scoping rules 2016-05-12 09:59:29 -04:00
Denton Liu
50eb3b8f8f Moved comment to more logical place 2016-05-12 09:49:49 -04:00
Denton Liu
e60a17379e Removed trailing spaces 2016-05-12 09:48:56 -04:00
chriseth
73ede5bb38 Merge pull request #552 from mario02423/patch-1
Update style-guide.rst
2016-05-12 12:40:13 +02:00
chriseth
67ca3bb4b9 Allow access to functions in inline assembly. 2016-05-12 12:30:48 +02:00
chriseth
1ab0f25dff Merge pull request #402 from VoR0220/fixedDataType
Fixed Type initial PR
2016-05-12 12:30:10 +02:00
Denton Liu
52a8d7b3f5 Added content 2016-05-11 17:07:25 -04:00
Denton Liu
08b7d4aebe Changed the title 2016-05-11 17:02:28 -04:00
Denton Liu
ef56723060 Created scoping section 2016-05-11 15:47:05 -04:00
Denton Liu
b6fd6ddc99 Change whitespace section to include exception
For single-line functions, some whitespace padding
makes the functions slightly more readable.
2016-05-11 15:16:18 -04:00
Denton Liu
d4125c4f07 Changed do_something to doSomething
This is in accordance to the style guide
2016-05-11 15:16:18 -04:00
chriseth
d4206b7cd0 Remove unused tests and add asserts for not implemented parts in code generation.
quick fix on christian's rational

change so that ubuntu will stop yelling

be more specific with rational declaration for Windows sake

rational in namespace correction for windows
2016-05-10 16:03:33 -05:00
chriseth
656405240e Simplify interface of RationalNumber. 2016-05-10 19:40:37 +02:00
chriseth
cf226f0607 Special case for moving sign bit to fractional part. 2016-05-10 19:40:37 +02:00
chriseth
02e1c9be0d Cleanup. 2016-05-10 19:40:37 +02:00
chriseth
4dfe9a216c Disallow explicit fixed->enum, but allow bytes->fixed. 2016-05-10 19:40:37 +02:00
chriseth
ef7049f9a6 Some cleanup. 2016-05-10 19:40:37 +02:00
chriseth
22318c0c1a Replace "unsigned int" by "unsigned". 2016-05-10 19:40:37 +02:00
chriseth
80c368dac1 Prefer mobileType() to check rational range. 2016-05-10 19:40:35 +02:00
chriseth
af354d7555 Correctly handle unexpected exceptions during tests. 2016-05-10 19:33:30 +02:00
mario02423
873c54106c Update style-guide.rst
Removed extraneous comma from line 366
2016-05-09 15:42:57 -05:00
VoR0220
a6fc3c8f30 reorganized tests and fixed mobile types and implicit conversions of rationals and fixed point types
one final tweak

check for null types
2016-05-09 11:41:03 -05:00
VoR0220
bfc238c8d1 updated algorithm for bit finding...now to figure out literal value
tiny fixups

changed location of the check

got rid of extra space and fixed a couple of things

added binary results bits

change back literal value
2016-05-09 11:41:03 -05:00
VoR0220
5bddb2d6ff changed algorithm for finding bits 2016-05-09 11:41:03 -05:00
VoR0220
4b3e1f140c much better way of doing modulus 2016-05-09 11:41:03 -05:00
VoR0220
82039b732e added bytes conversion tests, resolved that, converted to binary scaling, refactored the find algo to prevent large numbers and take into account integer bytes
think we're good on solidity type name resolution now

removed couts

updates to documentation and more removed couts along with literal value implementation

forgot semicolons
2016-05-09 11:41:03 -05:00
VoR0220
f0ea817580 fixing modulus and Solidity Name and Type Resolution
minor fixes

current attempts at binary fixup
2016-05-09 11:41:03 -05:00
VoR0220
f67bfd24a3 rational renaming 2016-05-09 11:41:03 -05:00
VoR0220
4b749fc333 changed names for Rational Constants and categories 2016-05-09 11:41:02 -05:00
VoR0220
4d283b2b30 currently what we have 2016-05-09 11:41:02 -05:00
RJ Catalano
93295ae8f8 got exponents up and working with their inverse, changed a few of the tests....something is working that likely shouldn't be
slight changes to how to flip the rational negative around...still trying to figure it out

tests added

updated tests

odd differences in trying soltest from solc binary, let me know if you can replicate

test not working for odd reason

fixed test problem with fixed literals...still need a way to log this error

broken up the tests, added some, changed some things in types and began compiler work

moar tests and prepping for rebuilding much of the types.cpp file

further fixing

infinite loop still happening but it's somewhere in the fixedPoint methodd

fractional bits needed algo improved! Eliminated 2 errors

Corrected problems with the previous commit. No infinite loops. Actually appear to have corrected an error
2016-05-09 11:41:02 -05:00
RJ Catalano
a1a2eac5fd size capabilities functioning properly for fixed types 2016-05-09 11:41:02 -05:00
RJ Catalano
91fda50922 fixed problem with var...probably a conversion problem for fixed in size capabilities
adding fixed type tests

Removing bitshift and regrouping fixed type tests together
2016-05-09 11:41:02 -05:00
RJ Catalano
dff1a26f55 fix for token bug, also quick fix for the wei and seconds 2016-05-09 11:41:02 -05:00