zah
650b20dc5e
fix varargs forwarding for templates; fixes #5455 ( #5505 )
...
* fix varargs forwarding for templates; fixes #5455
* document the macros' varargs change in the news for 0.16.2
2017-03-13 22:02:11 +01:00
c-blake
d59441340d
Fixes incorrect fd==0 test on Unix; Conserves handles by default. ( #5512 )
...
* Fix 2 problems. First, 0 is a valid fd on Unix (easily gotten if user first
closes all fds and then starts using memfiles). Use -1 instead for an invalid
fd. Second, it is best practice to conserve open fds on Unix and file handles
on Windows. These handles are not needed unless the user wants to remap the
memory with ``mapMem`` (or a hypothetical future ``proc resize``). Adding a
new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly
in a "mostly" backward compatible way. This is only "mostly" because the
default ``false`` case does not keep unneeded resources allocated, but that
most sensible default means that any ``mapMem`` callers need to fix all their
open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim.
* Include backwards compatibility note.
2017-03-12 20:45:10 +01:00
zah
1be0022e7c
Fixes #5167 and related problems ( #5475 )
...
This commit returns to a bit less strict checking of the number
of macro arguments, because some old immediate macros rely on a
behavior where even the arity of the macro is not being checked.
It may be better if such macros are just declared to use varargs[expr],
but this remains for another day.
2017-03-12 09:33:49 +01:00
zah
6e358e3187
don't allow casting to non-concrete types; fixes #5428 ( #5502 )
2017-03-12 09:27:05 +01:00
Araq
3fa428c88b
fixes #5467
2017-03-07 00:27:47 +01:00
Araq
4a77b66b19
fixes #5478
2017-03-06 18:38:15 +01:00
Florent
93305443aa
close #5472 nre tests should be run ( #5474 )
...
nre tests were just being compiled - changed so that a failure causes exit code to defer causing `tester` to report it as a failure
2017-03-04 11:13:08 +01:00
Simon Krauter
a42801d100
Make countLines() the same as len(splitLines(s)) ( #5470 )
...
The result of countLines() is now increased by 1 compared to the old
version.
Fixes #5460 .
2017-03-03 01:31:17 +01:00
Florent
f7af16a1c9
More robust tests for #5453 ( #5469 )
2017-03-03 01:30:49 +01:00
Ruslan Mustakov
a81247dcbe
Add compute proc for SharedTable ( #5385 )
2017-03-02 15:31:30 +01:00
Fabian Keller
e2567e2e03
Fix sigsegv in getTypeImpl for unnamed tuple ( #5440 )
...
avoid sigsegv in getTypeImpl for unnamed tuple; fixes #4862
2017-03-02 15:30:19 +01:00
Rokas Kupstys
cd2721242a
Fix waiting on coroutines ( #5463 )
...
Public coroutine API returns a safe reference to specific running coroutine. Fixes bug where multiple coroutines executing same procedure would identify as same coroutine.
Greatly optimizes `alive()` (and as a result of that `wait()`) calls.
Coroutine struct is allocated together with stack as memory unmanaged by GC.
2017-03-02 14:53:50 +01:00
Florent
34a3d40d18
fixes #5444 - nre.findIter keeps searching when no match is possible ( #5453 )
2017-03-02 11:48:41 +01:00
Federico Ceratto
dd4d47c671
Add gethostname to nativesockets ( #5443 )
2017-03-01 09:44:24 +01:00
Andreas Rumpf
895e2aea15
Merge pull request #5317 from rokups/feature/coroutines
...
Coroutine improvements
2017-02-26 23:24:29 +01:00
Araq
4f062c3be0
removed onThreadCreation; onThreadDestruction is now thread local
2017-02-26 20:42:19 +01:00
Araq
fb37d13f46
fixes #5439
2017-02-26 17:41:00 +01:00
Andreas Rumpf
e5341a391d
Merge pull request #5373 from nim-lang/feature/async-streams
...
Async streams and HTTP client streaming downloads support
2017-02-26 17:35:08 +01:00
Dominik Picheta
f9cce32097
Various fixes to FutureStreams based on PR feedback.
2017-02-26 12:52:19 +01:00
Araq
2589d69ed2
fixes #5430
2017-02-26 00:32:07 +01:00
Araq
d91d338d03
fixes #5432
2017-02-26 00:32:07 +01:00
Fabian Keller
5774145f5d
added hash for uints ( #5435 )
2017-02-26 00:17:21 +01:00
Fabian Keller
f250c30b9d
Make use of used in unittest ( #5410 )
2017-02-25 21:18:16 +01:00
Araq
1961e444c3
Merge branch 'devel' into feature/async-streams
2017-02-25 11:18:48 +01:00
Andreas Rumpf
4306efada4
Merge branch 'faster-nimsuggest' of github.com:nim-lang/Nim into faster-nimsuggest
2017-02-25 08:18:54 +01:00
Andreas Rumpf
b935eeb997
Merge branch 'devel' into faster-nimsuggest
2017-02-25 08:17:22 +01:00
Araq
fa98edc78c
another attempt to make test green again
2017-02-24 15:52:52 +01:00
Andreas Rumpf
f8914cc3b0
fixes a multimethod regression
2017-02-24 13:02:36 +01:00
Rokas Kupstys
9df0000621
Proper use of sequences in coroutine tests
2017-02-24 10:51:54 +02:00
Fabian Keller
e8ad59fdc4
Bugfix/double newlines in stderr ( #5426 )
2017-02-24 09:48:38 +01:00
Andreas Rumpf
46f33515d7
Merge branch 'devel' into faster-nimsuggest
2017-02-24 01:28:50 +01:00
Andreas Rumpf
2d546ca0ac
fixes #5417
2017-02-24 00:32:14 +01:00
Andreas Rumpf
22789a0bfc
fixes #5419
2017-02-24 00:32:14 +01:00
Andreas Rumpf
ac3b312cc6
Merge branch 'devel' into faster-nimsuggest
2017-02-22 16:28:32 +01:00
Andreas Rumpf
46efaf294b
big compiler refactoring; avoid globals for multi method dispatcher generation
2017-02-22 16:27:52 +01:00
Rokas Kupstys
5aef77a3d3
Removed test code from coro.nim and created three real tests for coroutines
2017-02-20 17:54:15 +02:00
Fabian Keller
ce4587d7b7
Enabled explicitly unknown lock levels ( #5409 )
...
* enabled explicitly unknown lock levels
* allowing "unknown" as locks pragma
* added test case for locks pragma
* updated docs on locks pragma
2017-02-20 09:31:52 +01:00
Araq
8f426b974a
new feature: .used pragma to suppress declared-but-not-used warning
2017-02-17 18:03:56 +01:00
Araq
dd8cbf5fca
fixes #5404
2017-02-17 17:44:52 +01:00
Araq
804b0ff99c
fixes #5400
2017-02-16 22:50:21 +01:00
Araq
0440aea691
fixes #5405
2017-02-16 21:30:54 +01:00
Araq
c9dd6908ae
resolved conflict
2017-02-16 11:18:10 +01:00
Araq
6499462303
fixes #5402
2017-02-16 11:15:43 +01:00
Araq
71026cec6e
fixes #5383
2017-02-16 11:15:43 +01:00
Araq
aebe9d7d13
make more tests green
2017-02-16 01:43:12 +01:00
Araq
97e26967f1
fixes #5383
2017-02-16 00:43:14 +01:00
Anatoly Galiulin
6fa1dba515
Add `tearDownForeignThreadGc` function ( #5369 )
2017-02-13 13:37:20 +01:00
Anatoly Galiulin
279e4b0451
Fixes #5382
2017-02-13 13:35:40 +01:00
ionel anton
636b977457
Column details for postgres. ( #5380 )
2017-02-13 09:09:43 +01:00
Dominik Picheta
b053ded266
Fixes tests.
2017-02-11 16:49:02 +01:00