Arne Döring
ce05a850a5
Merge pull request #9457 from Vindaar/fixes-9456
...
Fixes #9456
2018-10-20 21:57:17 +02:00
Vindaar
557fa85e02
add test case
2018-10-20 20:36:32 +02:00
Vindaar
e190f485ae
fixes #9456 by only calling c_fclose if non nil
2018-10-20 20:35:04 +02:00
Dominik Picheta
863d3ef4ed
Merge pull request #9446 from GULPF/times-32
...
Fix times 32-bit issue
2018-10-19 23:24:47 +01:00
Oscar Nihlgård
81f5427ed4
Fix times 32-bit issue
2018-10-19 22:33:40 +02:00
LemonBoy
5afcd09cb3
Pervasive replacement of nkRecWhen in generic types
...
Long story short, even if the type contains no reference at all to its
generic parameters we still have to walk its AST and evaluate any
nkRecWhen nodes that semRecordNodeAux skipped due to the type being a
generic one.
We also must be careful to modify the type `n` node in place since it
may be referenced by the caller as seen in the tillegaltyperecursion
test.
Moreover we also can't have the nkSym drift away from their original
values in order not to break the JS nkObjConstr codegen.
2018-10-19 22:17:38 +02:00
LemonBoy
16a70c84aa
Fixes 6544 ( #9427 )
...
* Fix call to converters with var/lent args
Fixes #6544
* Fix printing of lent types
* lent is only valid for result types
2018-10-19 21:04:32 +02:00
Timothee Cour
d0dd5ea887
[doc] add tips to doc/contributing.rst: git, code review, CI ( #9429 )
2018-10-19 21:03:25 +02:00
cooldome
b1ff37c08f
Transf minor code optimization ( #9433 )
2018-10-19 20:17:30 +02:00
Miran
fc625091e0
Update issue templates
...
Create `bug report` and `feature request` templates.
2018-10-19 16:52:14 +02:00
Araq
cd9bc941e1
incremental compilation: fixes basic caching logic of 'module' table
2018-10-19 16:27:20 +02:00
Arne Döring
d26beedfb1
Create issue_template.md
2018-10-19 15:07:14 +02:00
cooldome
953f2ef261
Minor bug fix ( #9430 )
2018-10-19 11:45:59 +02:00
Miran
9fb212cfdf
merge stdlib tests ( #9439 )
2018-10-19 11:43:35 +02:00
jcosborn
3b1ade0350
added test for #4674 ( #9438 )
2018-10-19 11:18:13 +02:00
Timothee Cour
162e7ee5b5
fixes #9376 : old changelogs should be kept instead of erased ( #9428 )
2018-10-19 09:33:42 +02:00
cooldome
eaca5be9d6
Change the order of compilation passes, transformation is made lazy at code gen ( #8489 )
...
* Ast no transformation
* Add getImplNoTransform to the macros module
* progress on delaying transf
* Fix methods tranformation
* Fix lazy lambdalifting
* fix create thread wrapper
* transform for lambda lifting
* improve getImplTransformed
* Fix destructor tests
* try to fix nimprof for linux
2018-10-18 20:21:25 +02:00
Timothee Cour
15dbd973de
[doc] start of best practices section in contributing.rst ( #9415 )
2018-10-18 20:20:26 +02:00
Arne Döring
9f18a4f448
Merge pull request #8366 from krux02/nimnode-or
...
or on NimNode
2018-10-18 17:49:47 +02:00
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
Arne Döring
f9bc4d014a
changelog entry
2018-10-18 16:07:15 +02:00
Arne Döring
016e0b1aac
fix typo
2018-10-18 15:42:14 +02:00
Arne Döring
358b5225df
fixed comment
2018-10-18 15:39:22 +02:00
Arne Döring
48697dc5bb
added test case for or operator
2018-10-18 15:39:22 +02:00
Arne Döring
abe8ac1962
or on NimNode
2018-10-18 15:39:22 +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