Commit Graph

13804 Commits

Author SHA1 Message Date
loongw
4841fc5356 \#include "windows.h" instead of "Windows.h" (#9475)
This fixes #9474
2018-10-23 15:50:11 +02:00
Oscar Nihlgård
16c3d4332f Fix infinite loop with nim check (#9448) 2018-10-22 17:24:14 +02:00
LemonBoy
b613092de8 Don't crash if GC_{un,}ref is called on nil (#9445)
Fixes #9442
2018-10-22 17:09:15 +02:00
cooldome
9c88df220a Compile pragma. Recompile on external file compilation failure (#9455) 2018-10-22 12:49:57 +02:00
Arne Döring
0dd3038a39 Merge pull request #9460 from recloser/fix-printing-uninitialized-strings
Fix printing and comparing uninitialized strings on JS
2018-10-22 08:26:53 +02:00
recloser
2b03bed2db Fix printing and comparing uninitialized strings 2018-10-21 21:18:10 +02:00
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
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