Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix constant folding for shl/not | LemonBoy | 2018-06-19 | 2 | -0/+92 |
| | | | | | Since the source and destination types are the same the result should be trimmed to fit. | ||||
* | Add MemMapFileStream. Fixes in memFiles. (#7944) | Dmitry Atamanov | 2018-06-14 | 2 | -1/+55 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add MemMapFileStream * Added tests * Fixed bug in memfiles (zero index for string) * Added flush to changelog * Attempt to fix Win's nuances * Fix attempt to fix * Continue... * And again... * Reworked tests (all for win on Win) * Fixes in flush (Win) * Replace fn vars to consts * Added the attempts parameter to the flush * Replace while to for * Move to memfiles * Use Natural instead of uint * Better error messages for append mode. Handle specific cases. | ||||
* | Add parse bin int, fixes #8018 (#8020) | Vindaar | 2018-06-13 | 1 | -1/+48 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clarify `parseHexInt`, `parseOctInt` docstring and exception msgs * add `parseBinInt` based on `parseutil.parseBin` implementation Adds a `parseBinInt`, which parses a binary integer string and returns it as an integer. This is based on the implementation of `parseutil.parseBin`, removing the unnecessary parts. * add tests for all `parse(Hex|Oct|Bin)Int` procs * replace `parse*Int` proc impls by call to parseutil procs Replaces the `parse(Hex|Oct|Bin)Int` procedure implementation by calls to the `parseutil` procs, which receive a mutable argument. Has the main advantage that the empty string as well as a "prefix only" string, e.g. "0x" counts as an invalid integer. Also moves the `parseOctInt` proc further up in the file so that all `parse` procs are below one another. * replace `var L` by `let L` in `parse` procs There's no reason for the usage of `var` here. * add `maxLen` optional arg for `parseutil.parse(Oct|Bin)` Plus small change to test cases. * update changelog about `parse*Int` procs * fix `rejectParse` template in `tstrutils` * make sure only `s.len` chars are parsed, if `maxLen+start` > s.len Fixes a previous bug in `parseHex` (and now affected `parseOct` and `parseBin`), which allowed to set `start + maxLen` to be larger than the strings length. This resulted in an out of bounds access. * move `parse*Int` proc change to breaking changes, add double ` | ||||
* | fix #5930 | Arne Döring | 2018-06-13 | 1 | -2/+2 |
| | |||||
* | Merge pull request #8019 from yglukhov/proc-stacktrace | Andreas Rumpf | 2018-06-12 | 1 | -0/+18 |
|\ | | | | | Allow stacktrace and linetrace pragmas on procs | ||||
| * | Allow stacktrace and linetrace pragmas on procs | Yuriy Glukhov | 2018-06-12 | 1 | -0/+18 |
| | | |||||
* | | Merge pull request #7981 from cooldome/Fix_-7980 | Andreas Rumpf | 2018-06-12 | 1 | -0/+27 |
|\ \ | |/ |/| | Fixes 7980 | ||||
| * | fixes 7980 | cooldome | 2018-06-06 | 1 | -0/+27 |
| | | |||||
* | | Merge pull request #8014 from yglukhov/fix-6803 | Andreas Rumpf | 2018-06-11 | 1 | -6/+118 |
|\ \ | | | | | | | Fixes #6803 | ||||
| * | | Fixes #6803 | Yuriy Glukhov | 2018-06-11 | 1 | -6/+118 |
| | | | |||||
* | | | Correct field lookup in concept types | LemonBoy | 2018-06-12 | 1 | -0/+27 |
|/ / | | | | | | | Fixes #6770 | ||||
* | | fixes yet another merge conflict | Araq | 2018-06-11 | 1 | -18/+0 |
|\ \ | |||||
| * \ | Merge pull request #8009 from yglukhov/remove-oldIterTransf | Andreas Rumpf | 2018-06-11 | 1 | -18/+0 |
| |\ \ | | | | | | | | | Removed oldIterTranf feature | ||||
| | * | | Removed oldIterTranf feature | Yuriy Glukhov | 2018-06-10 | 1 | -18/+0 |
| | | | | |||||
* | | | | fixes merge conflict | Araq | 2018-06-11 | 1 | -0/+46 |
|\| | | | |||||
| * | | | Merge pull request #8005 from Vindaar/fixes-7997 | Andreas Rumpf | 2018-06-11 | 1 | -0/+46 |
| |\ \ \ | | |/ / | |/| | | fix #7997 | ||||
| | * | | add test case for fix to #7997 | Vindaar | 2018-06-10 | 1 | -0/+46 |
| | | | | |||||
* | | | | fixes merge conflict | Andreas Rumpf | 2018-06-11 | 3 | -0/+42 |
|\| | | | |||||
| * | | | fix #7653 | Zahary Karadjov | 2018-06-10 | 2 | -1/+19 |
| |/ / | |||||
| * | | Fix type inference with static literals. | LemonBoy | 2018-06-10 | 1 | -0/+12 |
| | | | | | | | | | | | | Fixes #3977 | ||||
| * | | Merge pull request #7992 from yglukhov/fromSockAddr-compile-error | Andreas Rumpf | 2018-06-08 | 1 | -0/+12 |
| |\ \ | | | | | | | | | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr | ||||
| | * | | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr | Yuriy Glukhov | 2018-06-07 | 1 | -0/+12 |
| | | | | |||||
* | | | | make tests green again | Andreas Rumpf | 2018-06-11 | 1 | -3/+3 |
| | | | | |||||
* | | | | fixex merge conflicts | Araq | 2018-06-08 | 19 | -67/+1008 |
|\| | | | |||||
| * | | | Fixes #7985 | Yuriy Glukhov | 2018-06-07 | 1 | -0/+19 |
| |/ / | |||||
| * | | Updated tests for CritBitTree $ | data-man | 2018-06-07 | 1 | -3/+3 |
| | | | |||||
| * | | Cleanup copypaste leftover | Yuriy Glukhov | 2018-06-07 | 1 | -4/+0 |
| | | | |||||
| * | | Fixed yield in nkBlockExpr | Yuriy Glukhov | 2018-06-07 | 1 | -0/+15 |
| |/ | |||||
| * | Merge pull request #7550 from jangko/fix4799 | Andreas Rumpf | 2018-06-06 | 4 | -0/+305 |
| |\ | | | | | | | fixes #4799, varargs now can accept polymorphic types | ||||
| | * | fixed wrong test | andri lim | 2018-06-06 | 1 | -4/+4 |
| | | | |||||
| | * | combine/reduce test | andri lim | 2018-06-05 | 7 | -105/+87 |
| | | | |||||
| | * | fix test case output | andri lim | 2018-06-05 | 1 | -1/+1 |
| | | | |||||
| | * | add more test to 4799 | andri lim | 2018-06-05 | 8 | -0/+323 |
| | | | |||||
| * | | Fixed tests | Yuriy Glukhov | 2018-06-06 | 3 | -8/+24 |
| | | | |||||
| * | | Fixed yield in dotExpr and nkOfBranch lowering. Closes #7969. | Yuriy Glukhov | 2018-06-06 | 1 | -0/+24 |
| | | | |||||
| * | | Merge pull request #7907 from GULPF/lexer-unicode-fix | Andreas Rumpf | 2018-06-06 | 3 | -20/+27 |
| |\ \ | | | | | | | | | Lexer fix for multi byte characters | ||||
| | * | | Combine some of the lexer tests into a single file | Oscar Nihlgård | 2018-06-05 | 4 | -31/+27 |
| | | | | |||||
| | * | | Multi byte characters should not be treated as part of an operator | Oscar Nihlgård | 2018-06-03 | 1 | -0/+11 |
| | | | | |||||
| * | | | Merge pull request #7967 from nitely/empty_openarray_7904 | Andreas Rumpf | 2018-06-06 | 1 | -0/+39 |
| |\ \ \ | | | | | | | | | | | support empty toOpenArray | ||||
| | * | | | test negative range array | nitely | 2018-06-06 | 1 | -0/+14 |
| | | | | | |||||
| | * | | | check bounds instead of index | nitely | 2018-06-05 | 1 | -0/+25 |
| | | | | | |||||
| * | | | | Merge pull request #7770 from yglukhov/yield-in-try | Andreas Rumpf | 2018-06-05 | 4 | -10/+391 |
| |\ \ \ \ | | |/ / / | |/| | | | Yield in try | ||||
| | * | | | Merge branch 'devel' into yield-in-try | Yuriy Glukhov | 2018-05-15 | 11 | -17/+17 |
| | |\ \ \ | |||||
| | * | | | | Review comments addressed. More thorough line info tracking. | Yuriy Glukhov | 2018-05-10 | 1 | -2/+2 |
| | | | | | | |||||
| | * | | | | More elaborate nkStmtListExpr lowering | Yuriy Glukhov | 2018-05-09 | 1 | -144/+315 |
| | | | | | | |||||
| | * | | | | Yield in try | Yuriy Glukhov | 2018-05-09 | 2 | -1/+204 |
| | | | | | | |||||
| | * | | | | Extended tasync_in_seq_constr test | Yuriy Glukhov | 2018-05-09 | 1 | -6/+14 |
| | | | | | | |||||
| | * | | | | Closure iter transformation | Yuriy Glukhov | 2018-05-09 | 1 | -2/+1 |
| | | | | | | |||||
| * | | | | | Fix strformat neg zero (#7954) | skilchen | 2018-06-05 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix strformat handling of neg zero with sign * better tests for neg zero with sign * use inplace insertion of the sign as suggested by Varriount | ||||
| * | | | | | Fix strformat precision handling for strings (#7941) | skilchen | 2018-06-04 | 1 | -0/+26 |
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix strformat precision handling for strings * add some limited unicode awareness to the precision handling for strings * improvement suggested by Varriount: use setLen and runeOffset instead of runeSubstr |