Commit Graph

8782 Commits

Author SHA1 Message Date
Andreas Rumpf
bcb2365dec fixes a critical JS codegen bug which caused 'importcpp' statements not to be emitted 2016-07-11 23:19:24 +02:00
Andreas Rumpf
c9ce38e56d fixes a strange JS codegen bug 2016-07-11 23:19:24 +02:00
Andreas Rumpf
b668c5e2aa Merge pull request #4476 from yglukhov/gc-trace-fix
Fixed crash with leakDetector and threads enabled.
2016-07-11 20:46:02 +02:00
Andreas Rumpf
51c77e09fd Merge pull request #4477 from kierdavis/4475-segfault
Fix #4475
2016-07-11 20:45:28 +02:00
Kier Davis
023f1da40a Add regression test for fix for #4475 2016-07-11 15:16:23 +01:00
Andreas Rumpf
fba673ce15 Merge pull request #4474 from mbaulch/fix3516
Recursively check literals for tyEmpty.
2016-07-11 16:14:13 +02:00
Kier Davis
56015e52b9 Fix #4475
Existing implementation would append the default value for a varargs parameter (the empty array) to the end of the sons of the
nnkCall node, rather than storing it into the correct index. This left the location where it should have been stored set to
its default value of nil, causing later code that uses this node to segfault.
2016-07-11 14:53:39 +01:00
Yuriy Glukhov
59d17cb341 Fixed crash with leakDetector and threads enabled. 2016-07-11 16:23:15 +03:00
Andreas Rumpf
9620e66533 Merge pull request #4472 from mbaulch/fix4422
Fix #4422: Reset queue element on pop. Prevent NimVM confusion. Help GC.
2016-07-11 11:53:43 +02:00
Matthew Baulch
d05e146b30 Recursively check literals for tyEmpty. 2016-07-11 19:12:05 +10:00
Matthew Baulch
90a5edfa6d Fix #4422: Reset queue element on pop. Prevent NimVM confusion. Help GC. 2016-07-11 15:10:54 +10:00
Andreas Rumpf
d7e172a6bc make tests green again 2016-07-10 01:17:08 +02:00
Andreas Rumpf
58f4b4ce23 Merge pull request #4469 from FedericoCeratto/patch-11
Fix "string literal as key expected" error
2016-07-10 00:05:54 +02:00
Andreas Rumpf
2247ddd12d make hint/warning work properly after Nimscript execution 2016-07-09 22:45:55 +02:00
Federico Ceratto
a505fa631d Fix "string literal as key expected" error
Fix "Error: string literal as key expected expected"
2016-07-09 17:25:57 +01:00
Andreas Rumpf
5e82ffc8d5 Nimscript: added support for 'patchFile' 2016-07-09 14:26:00 +02:00
Andreas Rumpf
66f37971e9 undocumented feature: JS backend: unit and group separators generate hash and at symbols 2016-07-09 00:28:14 +02:00
Andreas Rumpf
ba273057e3 Fixes a critical JS codegen bug about @ in call pattern 2016-07-08 23:03:11 +02:00
Andreas Rumpf
e2267ef5c9 Nimscript supports hint() and warning() procs; refs #3688 2016-07-08 22:24:28 +02:00
Andreas Rumpf
089c31765f fixes #3055 2016-07-08 20:11:59 +02:00
Andreas Rumpf
1d186ee9c3 fixes #2377 2016-07-08 18:08:34 +02:00
Andreas Rumpf
d83eb70643 async: use -d:nimDumpAsync to see what the async macro generates 2016-07-08 18:05:36 +02:00
Andreas Rumpf
d9e44873ab gensym'ed symbols are rendered with their ID for much easier debugging 2016-07-08 18:04:41 +02:00
Andreas Rumpf
7f752db0e3 improve error message if C and Nim disagree on pointer size 2016-07-08 15:55:42 +02:00
Andreas Rumpf
abf1951ff0 docgen: hide pragmas 2016-07-08 15:08:55 +02:00
Andreas Rumpf
019ee2260c fixes #4399 2016-07-08 11:05:48 +02:00
Andreas Rumpf
857b0c8d4c fixes #4462 2016-07-08 10:52:04 +02:00
Andreas Rumpf
b47d9b7b91 fixes #4371 2016-07-08 10:34:12 +02:00
Andreas Rumpf
caa7f42e8e fixes #4340 2016-07-07 01:35:42 +02:00
Andreas Rumpf
e9eab32e54 new language feature: explicit 'import system' statements are allowed 2016-07-07 01:02:12 +02:00
Andreas Rumpf
28940ce457 ospaths can always be imported; fixes #4249 2016-07-06 20:16:55 +02:00
Andreas Rumpf
d96bf94fda Merge pull request #4458 from cheatfate/fixtest1
Resolve problems with tioselectors test on OSX.
2016-07-06 17:43:04 +02:00
cheatfate
32e3e01dac Resolve problems with test on macosx. 2016-07-06 18:02:59 +03:00
Andreas Rumpf
389f500226 added test case for #537 2016-07-06 16:52:41 +02:00
Andreas Rumpf
17d97462cf Merge branch 'devel' of github.com:nim-lang/Nim into devel 2016-07-06 16:48:14 +02:00
Andreas Rumpf
e73fd64f38 fixes #537 2016-07-06 16:48:00 +02:00
Andreas Rumpf
46237a273d Merge pull request #4456 from yglukhov/vm-ct-args
Fixed vm codegen for a call with compile-time args. Fixes #4412.
2016-07-06 15:14:44 +02:00
Yuriy Glukhov
09783c3fd0 Fixed vm codegen for a call with compile-time args. Fixes #4412. 2016-07-06 14:39:57 +03:00
Andreas Rumpf
fb1c2fec37 Merge pull request #4455 from mbaulch/fix_excl_examples
Update sets examples so they work again.
2016-07-06 13:27:05 +02:00
Matthew Baulch
a6c66139fa Update sets examples so they work again. 2016-07-06 20:30:57 +10:00
Andreas Rumpf
b681e91745 Merge pull request #4449 from mbaulch/fix4003
Fix #4003: Regard nil nodes as having equal type constraints.
2016-07-06 12:12:42 +02:00
Andreas Rumpf
f16163d82b Merge pull request #4452 from yglukhov/js-enum-repr-offset
JS: Repr now works for enums starting with non-zero.
2016-07-06 12:12:10 +02:00
Andreas Rumpf
6d9177c6f1 added strutils.splitWhitespace 2016-07-06 11:59:20 +02:00
Yuriy Glukhov
a76b74ed74 Repr now works in js for enums starting with non-zero. 2016-07-05 22:43:59 +03:00
Andreas Rumpf
834c2abfd1 Merge pull request #4447 from cheatfate/async2
async core v3
2016-07-05 21:40:56 +02:00
Andreas Rumpf
9a54834bf4 Merge pull request #4450 from SSPkrolik/reprEnum-fix
Fixed reprEnum() function on 32-bit systems
2016-07-05 19:08:27 +02:00
cheatfate
ffb975f474 Lower numbers for unchecked array 2016-07-05 20:01:21 +03:00
cheatfate
2cbdf6088a Misplaced & 2016-07-05 20:00:26 +03:00
cheatfate
80ae938ddf Simplify SharedArray. 2016-07-05 19:56:18 +03:00
Rostyslav Dzinko
e94c0ea4c8 Fixed reprEnum function on 32-bit systems 2016-07-05 19:05:31 +03:00