Commit Graph

13775 Commits

Author SHA1 Message Date
Araq
604dfebee0 disallow 'continue' that is not used within a loop; fixes #6367 2018-10-18 17:42:57 +02:00
Araq
c64391e30b closes #6220 2018-10-18 17:28:00 +02:00
Araq
68c6d709d3 fixes #5519 2018-10-18 17:06:04 +02:00
Araq
4644484fb7 closes #5321 2018-10-18 17:00:23 +02:00
Araq
ec4985a573 fixes #7972 2018-10-18 17:00:23 +02:00
Vindaar
82a1576263 fix #9394 by replacing fmt with strutils.% (#9417)
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add
2018-10-18 14:47:47 +02:00
LemonBoy
1fe949b9d5 Make the swap procs safe for unaligned input ptrs (#9210)
* Make the swap procs safe for unaligned input ptrs

The copy to a temporary local variable is often elided by a sufficiently
smart compiler when it can prove the input pointer is aligned.

Refs #9206

* Explain why copyMem is used
2018-10-18 14:30:31 +02:00
Araq
e66b51eb16 make testament compile again with --taintMode:on 2018-10-18 14:25:54 +02:00
Miran
675c629fee replace deprecated safeAdd with add (#9416) 2018-10-18 12:29:32 +02:00
Timothee Cour
7d8e281239 [nimscript] document currentSourcePath in thisDir (#9402) 2018-10-18 12:18:40 +02:00
Araq
be77710c8c testament: use NIM_COMPILE_TO_CPP environment variable 2018-10-18 12:12:15 +02:00
Araq
381498b0db tests: disable flaky tests for now; closes #9421 2018-10-18 12:12:15 +02:00
Araq
03a05ca456 intern.rst: minor formating improvements 2018-10-18 12:12:15 +02:00
LemonBoy
6ef198e07b Relax the restrictions on the index types (#9412) 2018-10-18 11:08:05 +02:00
Bo Lingen
458aab0b10 docs(lib): update Nimble notes since package list is not inline anymore (#9397) 2018-10-18 11:07:10 +02:00
Araq
d2ca808106 koch: bootstrap with C++ for NIM_COMPILE_TO_CPP env var 2018-10-18 10:58:28 +02:00
Araq
505571f31c travis: use explicit build matrix; prepare for extensive C++ testing 2018-10-18 10:06:50 +02:00
Miran
95504caa31 make some tests faster (#9413)
* remove duplicated slow test

* smaller `convex hull`

* smaller sleep

* faster `trtree`

* smaller sleep in `tfuturestream`
2018-10-17 19:46:42 +02:00
Araq
81e33b9d87 make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs 2018-10-17 13:20:45 +02:00
Araq
bd9d5787f0 nimpretty: fixes #9384 2018-10-17 13:07:29 +02:00
technicallyagd
88adf77569 Elaborate on source code filter usage in the documentation. (#9407)
* Elaborate on source code filter usage.
Also gives it an abbreviation, SCF.

* Fix the code block formatting

* Trim off the unintended usage with import.
2018-10-17 12:51:51 +02:00
Yuriy Glukhov
dc72cf7564 No setjump in GC for emscripten/wasm (#9386) 2018-10-17 00:46:13 +02:00
PMunch
db95fad6fa Fixes #9364 and add moduleDescription to jsondoc (#9396)
This fixes `jsondoc0` so that it has comments in the output as described
by the documentation. It also fixes `jsondoc`/`jsondoc2` as it stored
it's output in a file with an html extension. Along with this it also
adds a new field `moduleDescription` to `jsondoc`/`jsondoc2` which
contains the module description.
2018-10-17 00:34:47 +02:00
Miran
e8cf289bee improve error message, closes #2361 (#9387)
* improve error message

* use single % operation
2018-10-17 00:18:51 +02:00
Federico Ceratto
afc453beff Update example (#9395) 2018-10-17 00:17:37 +02:00
Kaushal Modi
3e9f506923 Update config.nims search path in docs (#9388)
Related: https://github.com/nim-lang/Nim/pull/8682

Also mention the "nim help" command to list all available tasks.
2018-10-17 00:17:10 +02:00
Oscar Nihlgård
163e9de3c2 Unicode escape in string literals (#9390) 2018-10-17 00:14:22 +02:00
Andreas Rumpf
0d48bafcf0 fixes a regression about indexing into UncheckedArray 2018-10-16 20:09:12 +02:00
Andreas Rumpf
b340f677eb fixes #9244 2018-10-16 20:09:12 +02:00
eqperes
afd9d8dd8d Some documentation added to strutils (#9379)
* wip documentation strutils

* some runnableExamples in strutils

* assert -> doAssert

* corrected doc for abbrev; some more runnable examples

* runnableExamples for join

* fix c&p error

* corrections
2018-10-16 17:30:38 +02:00
Andreas Rumpf
480d228603 nimpretty: added an new simple test 2018-10-16 17:25:12 +02:00
Andreas Rumpf
778e4d1775 nimpretty: fixes #9144 2018-10-16 17:21:41 +02:00
Andreas Rumpf
f3c0703b7d nimpretty: add #!nimpretty on/off directives 2018-10-16 16:55:04 +02:00
Andreas Rumpf
ed38079b9b nimpretty: fixes #8626 2018-10-16 16:55:04 +02:00
LemonBoy
72cd3b7914 Fix repr() for UncheckedArray (#9385) 2018-10-16 14:27:42 +02:00
Andreas Rumpf
89ba0f8592 nimpretty: render r-strings properly, fixes #9236 2018-10-16 13:33:14 +02:00
Miran
749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368)
* merge magics

* merge metatype tests

* merge method tests

* merge objects tests

* change `import future` to `import sugar`

Nim in Action tests are left with `import future`, to ensure compatibility.

* merge overload tests

* merge proc tests

* merge procvar tests

* merge range tests

* merge seq tests

* merge sets tests

* remove wrong assert from `tsets3`

* fix `jsTests`

* better fix
2018-10-16 10:50:10 +02:00
skilchen
f04c93b5dd math.round is not needed in strutils (#9383) 2018-10-16 09:19:53 +02:00
Araq
0c04da6f26 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-10-15 12:20:52 +02:00
Araq
bf01d7136e Merge branch 'Fixes-7845' of https://github.com/cooldome/Nim into cooldome-Fixes-7845 2018-10-15 11:50:12 +02:00
Araq
8252c65cf2 system.nim deprecate 'getRefcount'; refs #2839, refs #3713 2018-10-15 10:54:20 +02:00
Araq
37986d0ba8 ospaths docs: add 'basename' to theindex 2018-10-15 10:51:47 +02:00
Araq
f8e805a614 fixes #2760 2018-10-15 10:43:56 +02:00
Araq
fe091997aa system.nim: fixes typo 2018-10-15 02:38:04 +02:00
Timothee Cour
3bef851143 fix #8225 os.isHidden was buggy on posix (#8315)
* fix #8225 isHidden was broken on posix

* scope rest of tos.nim under blocks to avoid variable scope bugs
2018-10-15 00:22:34 +02:00
Andreas Rumpf
b39302b0d2 DFA: implement exception handling properly 2018-10-14 17:36:55 +02:00
Miran
a30ba8cc37 merge macros tests (#9367) 2018-10-14 17:08:42 +02:00
Andreas Rumpf
8955470644 fixes #9306 properly, fixes #9306 2018-10-14 11:19:51 +02:00
Federico Ceratto
b62328cb76 Add strip() example (#8002) 2018-10-14 11:05:28 +02:00
Andreas Rumpf
8960efa340 unicode: added strip, align, alignLeft, repeat procs; refs #6301 2018-10-14 11:00:22 +02:00