Commit Graph

14524 Commits

Author SHA1 Message Date
Timothee Cour
fbd6743ea1 fix sdl_test test that failed in CI cpp mode (#10314)
* fix sdl_test test that failed in CI cpp mode

* preserve old code for NimInAction in `nim c` mode
2019-01-15 15:17:52 -08:00
Oscar Nihlgård
1d7e3a84fd Improve exception usage in parseutils (#10284) 2019-01-15 23:48:19 +01:00
Araq
ece5887ab0 another attempt to fix https://github.com/nim-lang/nightlies/issues/17 2019-01-15 23:08:09 +01:00
nepeckman
7920dc2898 Added support for --genDeps on JS backend (#10320) 2019-01-15 22:58:44 +01:00
Araq
ef769e20b3 attempt to fix https://github.com/nim-lang/nightlies/issues/17 2019-01-15 22:57:50 +01:00
Araq
27e366eaec fixes #8294 [backport] 2019-01-15 22:47:21 +01:00
Timothee Cour
795e5e11ef parseopt2.cmdLineRest is now correct too (#10304) 2019-01-15 21:51:02 +01:00
Timothee Cour
beed27b75d improve vmgen.codeListing formatting (#10306)
* improve vmgen.codeListing formatting
* address comments
2019-01-15 19:02:01 +01:00
Reimer Behrends
06e3d3ab4d Disable interior pointer checking by default for the Boehm GC. (#10316)
The Boehm GC only needs interior pointer checking if pointers in global
variables or on the heap point to the interior of an object rather than
the beginning. If this does not happen, then checking for interior
pointers causes additional overhead, in particular because any objects
whose sizes are an exact multiple of two words gain another two words of
padding, wasting memory.

If checking of interior pointers is still desired, this can be achieved
by setting the environment variable GC_ALL_INTERIOR_POINTERS.

Pointers on the stack will always be treated as potential interior
pointers, as compiler optimizations may advance the only live reference
to a point past the beginning of an object.
2019-01-15 19:00:02 +01:00
Timothee Cour
4355f23ee5 fix #10305 nim cpp is now nan-correct at CT (#10310)
* fix #10305 nim cpp is now nan-correct at CT
* add example where simply `nim cpp -d:release` would exhibit nan bug
2019-01-15 14:50:28 +01:00
Timothee Cour
9a92bc15b3 [CI] runCI runs kochExec "boot" regardless of nim mode (#10312) 2019-01-15 14:46:29 +01:00
Timothee Cour
c05e9c7c73 fix twrong_refcounts in nim cpp mode (#10313) 2019-01-15 14:46:01 +01:00
Andreas Rumpf
05c52ff34f fixes #10203 (#10290)
* fixes #10203
* make typredef test green again
* fixes the regressions differently
2019-01-15 10:15:27 +01:00
Andreas Rumpf
06a8b48811 disable one more test for C++ 2019-01-15 10:02:09 +01:00
Andreas Rumpf
fbf9b1f88a fixed indentation 2019-01-15 10:02:09 +01:00
Timothee Cour
1d941b8735 refs #10249 #10266; each command logged only if --verboseCommands:true (#10303) 2019-01-15 09:53:58 +01:00
Neelesh Chandola
8922063bd8 typed/untyped return type is invalid for everything except templates and macros (#10275) 2019-01-15 08:08:12 +01:00
Jjp137
c8ba9ffdba lib.rst: fix a typo (#10308) [ci skip] 2019-01-15 07:05:05 +01:00
Timothee Cour
9e68b2ce5d fix test 2019-01-14 17:00:54 -08:00
Timothee Cour
0a8762eb7b fix #9842 #9951: nim -r and parseopt.cmdLineRest are now correct 2019-01-14 17:00:54 -08:00
Timothee Cour
e17321aa24 improve formatting in assertEquals 2019-01-14 17:00:54 -08:00
genotrance
dd1f23f6fc Expose CTime (#10301) 2019-01-14 22:16:11 +01:00
Andreas Rumpf
1899d8d107 make tests green again 2019-01-14 20:11:33 +01:00
Arne Döring
b78af990b8 Fixes #10065 (#10260)
CountTable now returns 0 instead of 'key not found' for get requests.
2019-01-14 17:16:17 +01:00
Araq
d69a7842fa fixes #7878 2019-01-14 12:36:34 +01:00
Araq
825e08b046 fixes #7524 2019-01-14 12:15:40 +01:00
Timothee Cour
65593e76f4 fixes leftover from #9647 : use nimf as standardized extension for source code filters (#10294) 2019-01-14 11:58:16 +01:00
genotrance
c707267212 Add stdin read support to nimscrit #3983 (#10292) 2019-01-14 09:26:10 +01:00
narimiran
29e0a792ff [backport] fix documentation leak to os.nim[ci skip] 2019-01-14 09:24:12 +01:00
Arne Döring
2b37bf5d5b added proc rand for typedesc (#10259) 2019-01-14 09:20:31 +01:00
Araq
d983d998b2 fixes #9218 2019-01-13 18:53:27 +01:00
Araq
3c2d82eaae make megatest green 2019-01-13 17:19:36 +01:00
Araq
80c69ffd31 nimgrep: use standard regular expression syntax, not reExtended 2019-01-13 16:23:08 +01:00
Araq
bd5dd2b95b nimgrep: fixes #989 2019-01-13 16:22:19 +01:00
Araq
2ccc9db59d closes #3744 2019-01-13 16:05:42 +01:00
Araq
aa7ad88978 fixes #10075 [backport] 2019-01-13 15:52:50 +01:00
Araq
ab99bdfc40 fixes #10136 2019-01-13 14:56:50 +01:00
Araq
451377f737 fixes #10271 [backport] 2019-01-13 14:24:38 +01:00
Araq
7f0559b93f fixes #7241 2019-01-13 14:09:14 +01:00
Araq
0c10fc67eb fixes #10104 2019-01-13 14:09:13 +01:00
Dominik Picheta
d740a5b79a Implements BackwardsIndex [] for deque. (#10105) 2019-01-13 14:06:16 +01:00
Araq
796432ff94 make tests more robust; tests should be deterministic, no randomize() calls in tests 2019-01-13 13:54:44 +01:00
Araq
40115cd645 improve error messages quality for '.push: raises []' 2019-01-13 13:30:01 +01:00
Araq
5cd18b0f24 make system.task compatible with NimScript; refs #10254 2019-01-13 09:04:57 +01:00
Strømberg
2823da5e52 setCommand nop update documentation (#10254)
When I used Warning: Using `setCommand 'nop'` is not necessary.
2019-01-13 09:04:40 +01:00
Timothee Cour
9af85fb69f fixes #10273 execShellCmd now returns nonzero when child killed with signal + other fixes (#10274)
* s/exitStatus(...)/exitStatusLikeShell(...)/
* fix #10273 execShellCmd now returns nonzero when child exits with signal
* test case for #10249 and explanation for the bug
* fix test failure
* add tests/nim.cfg
2019-01-13 09:00:39 +01:00
rec
f5cc2e2de5 Fixes 10202 (#10283)
* Add a test case for #10202
* Fix asgn for object tyVars; fixes #10202
* Check the variant kind before accessing the sym field
2019-01-12 19:49:31 +01:00
Timothee Cour
98ef545bed fix #10281 (#10282) 2019-01-12 08:18:04 +01:00
Ico Doornekamp
7e7603ed2b Documented error source argument of macros.error() (#10279) 2019-01-12 08:17:20 +01:00
Araq
647066e378 make the stdlib work with the changed docgen 2019-01-11 22:17:43 +01:00