Commit Graph

4941 Commits

Author SHA1 Message Date
Zahary Karadjov
9574d318ae use lower-case proc names 2017-03-24 17:03:55 +02:00
Zahary Karadjov
52b241fd57 new type traits: GenericHead and StripGenericParams 2017-03-24 16:59:47 +02:00
Dmitriy Fomichev
268a1f7cfd Deques compilation error fix (#5591) 2017-03-24 00:09:51 +01:00
Arne Döring
d4b4cad4ea Added few documentation lines for the unsafeAddr operator. (#5362) 2017-03-23 23:49:07 +01:00
Anatoly Galiulin
434a7c8426 Fix posix version of moveFile between different filesystems (#5580) 2017-03-23 23:40:03 +01:00
Dominik Picheta
0cad2896ae Implement asyncfile.readToStream. 2017-03-23 21:34:53 +01:00
Dominik Picheta
f2ca6021dc Implement requestAnimationFrame and cancelAnimationFrame in dom module. 2017-03-23 21:34:32 +01:00
Dominik Picheta
d221e6a35c Improve os.getFileSize documentation to specify the unit. 2017-03-23 21:34:03 +01:00
Eugene Kabanov
254fbcc548 Fixes #4719. (#5585) 2017-03-23 16:13:38 +01:00
Ruslan Mustakov
310b73b556 Reduce the scope of stackTrace var (#5583)
Fixes #5571.
2017-03-22 01:06:05 +01:00
Eugene Kabanov
e20af5cec6 Fix #4972. (#5567) 2017-03-19 07:16:13 +01:00
Ryan Gonzalez
244bf68fb0 Fix #5550 (#5553) 2017-03-18 21:05:12 +01:00
Araq
d365f1a81a resolved unittest conflict 2017-03-18 20:59:10 +01:00
Araq
aa4260ffa8 overloading resolution for getAst; breaking change 2017-03-18 20:57:45 +01:00
Ruslan Mustakov
65422487f3 Add support for custom test report formatters (#5556)
Implement ConsoleOutputFormatter that is backward compatible
with the previous implementation.
Implement JUnitOutputFormatter which can be added externally.
2017-03-18 20:48:30 +01:00
Andreas Rumpf
9f5492becd strutils.nim: make removeSuffix robust on empty strings 2017-03-18 10:42:11 +01:00
Eugene Kabanov
d701de5733 Fix osproc.peekExitCode() to handle exitcode properly. (#5555) 2017-03-17 10:02:36 +01:00
Eugene Kabanov
336a7c9b3f Fixes to support Dragonfly BSD. (#5552)
* Fix kqueue.nim and ansi_c.nim to support dragonfly.
* Fix ioselectors.nim, threads.nim to support dragonfly.
* Fix deprecated dealloc call in tioselectors.nim.
* Fix tfsmonitor.nim test to run only on Linux.
* Fix osproc.nim return wrong exit codes.
* Fix getAppFilename() for dragonfly.
* Fix proper exit code handling.
2017-03-17 08:22:11 +01:00
Anatoly Galiulin
0874c649e9 Fix console logger issue; fixes #5546 (#5547) 2017-03-16 20:25:53 +01:00
GrundleTrundle
13ba0b557e Added clear() function for OrderedSet and HashSet. (#5545) 2017-03-16 08:06:24 +01:00
Araq
518696f3a7 hotfix: allocator: don't set origSize to 0 2017-03-15 17:51:26 +01:00
Yuriy Glukhov
27c8efda9d decTypeSize on growObj (#5465) 2017-03-15 10:58:34 +01:00
Samantha Marshall
93753926f5 adding support for using llvm ASAN (#5536) 2017-03-14 23:33:56 +01:00
Parashurama
976095c894 add bitops module for optimized bit manipulation. (#5201) 2017-03-14 21:32:54 +01:00
Araq
b1c494a150 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-03-14 15:56:08 +01:00
Araq
98c7bab8ea make memory tracker work without onThreadCreation 2017-03-14 15:45:35 +01:00
Mark Summerfield
3eff1b7765 Minor doc fix as per issue #5523 (#5533) 2017-03-14 15:06:06 +01:00
Andreas Rumpf
e32f08d05b sequtils: removed outdated note 2017-03-14 08:40:02 +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
Anatoly Galiulin
cb9d554ac9 Fix typo (#5501) 2017-03-10 16:18:56 +01:00
konqoro
d1119c120d Fix links to manual (#5500) 2017-03-09 22:37:44 +01:00
Araq
ced38f3fdb udpate channels.nim documentation 2017-03-08 22:56:21 +01:00
Emery Hemingway
fecad72e02 SMTP sync/async deduplication
Deduplicate synchronous and asynchronous code with the multisync pragma.
Pass address and port at connect rather than ``new(Async)Smtp``.
2017-03-07 12:10:18 -06:00
David Krause
7dc8dcb581 fixes #5487 (#5494) 2017-03-07 16:58:38 +01:00
Ruslan Mustakov
9608acf200 Check if __STDC_VERSION__ is defined (#5488) 2017-03-07 09:56:46 +01:00
Anatoly Galiulin
24ec36f097 Fix iconv import on freebsd and netbsd (#5490) 2017-03-07 09:56:16 +01:00
David Krause
643b7f8650 Fix for #5482, let OrderedTable accept multiple keys (#5485) 2017-03-05 20:17:43 +01:00
Fabian Keller
d1d32f657a tiny docstring fix; fixes #5483 (#5484) 2017-03-05 10:44:25 +01:00
Rayner De Los Santos F
d5d975ceef Only remove scheme when there's a TLS request ("https")
If condition, for not removing the scheme when proxied connection isn't a TLS request ("http://...").
2017-03-03 08:47:13 -04:00
Andreas Rumpf
5d125ca716 Merge branch 'devel' into faster-nimsuggest 2017-03-03 13:00:09 +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
Ruslan Mustakov
a81247dcbe Add compute proc for SharedTable (#5385) 2017-03-02 15:31:30 +01:00
Yuriy Glukhov
73387e89a0 Fixed compilation error (#5462) 2017-03-02 14:58:26 +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
Ruslan Mustakov
32159ee827 Ignore pointer-bool-conversion warning (#5468) 2017-03-02 08:55:17 +01:00
Florent
9965123098 Fixes #5457 - StdLib base64 encodeInternal crashes with out of bound exception (#5464) 2017-03-02 08:54:45 +01:00
Dominik Picheta
37abcf18f8 Merge pull request #5466 from yglukhov/asynchttpserver-bad-content-length
Dont assert on malformed requests
2017-03-01 19:14:02 +00:00
Yuriy Glukhov
f842f9d6aa Dont assert on malformed requests 2017-03-01 17:11:39 +02:00
Yuriy Glukhov
28a7c874b7 Revert "Listen on ipv6" (#5461) 2017-03-01 15:03:10 +01:00