Commit Graph

5064 Commits

Author SHA1 Message Date
Andreas Rumpf
210955c3b6 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-06 18:03:51 +02:00
Andreas Rumpf
0915399b50 fixes a long standing string steams bug that caused lexbase to misbehave 2017-06-06 18:03:44 +02:00
Parashurama
2c5053caef fix countProcessors error return value. (#5942) 2017-06-05 13:21:57 +02:00
Parashurama
cd51628f57 fix orderedtable enlarge proc. (#5937)
This fixes issue #5917
2017-06-05 13:16:30 +02:00
zah
39aef12446 review and merge zahary's work (#5849)
* proper indentation for the generated JS code
* improved dead-code elimination for JavaScript
* test the JS dead-code elimination

A new test spec has been added - "maxcodesize". It specifies the
maximum size of the generated code in bytes.
2017-06-03 12:45:10 +02:00
Arne Döring
eb8e267ff6 improved comment satement support in macros (#5904) 2017-06-02 01:22:21 +02:00
Eugene Kabanov
199f061ddc Fix #5920 (#5922)
* Use native `getthrid` on OpenBSD.
* Use NetBSD specific primitive to get thread id
2017-05-31 21:00:16 +02:00
Araq
3c129b7fe5 make development version odd 2017-05-31 14:35:45 +02:00
ftsf
eb83ec2685 Remove redundant filestream.close, causes crash (#5907)
File is already being closed by defer: file.close() closing it twice causes crash.
2017-05-29 14:57:49 +02:00
cooldome
aef5b2eb54 Add len for Slice[T] where T is ordinal (#5847) 2017-05-29 09:41:00 +02:00
Varriount
84a4b77854 Merge pull request #5877 from krux02/more-newLit
more and improved newLit procs in macros module
2017-05-26 02:14:52 -04:00
Arne Döring
32143d3c7a more and improved newLit procs in macros module 2017-05-23 19:37:51 +02:00
Yuriy Glukhov
2b8a1cee8c Fixup #5804 (#5837) 2017-05-18 13:12:43 +02:00
Dominik Picheta
bf0afaf3c4 Fixes web0 on Mac OS X. 2017-05-17 22:11:43 +01:00
Araq
47076452fd updated version to 0.17.0 2017-05-17 22:56:49 +02:00
Ruslan Mustakov
0a76387ba4 Fix posix_spawn error handling (#5826)
posix_spawn doesn't set errno - it returns the error code.
2017-05-17 22:40:55 +02:00
Araq
8f67b90997 Merge branch 'araq2' into devel 2017-05-17 22:13:57 +02:00
Dominik Picheta
b2e649c093 Fixes regression introduced by #5739. Improves newNimNode proc. 2017-05-17 20:05:21 +01:00
Andreas Rumpf
7a95c961a7 cleanup of in/out covariance handling 2017-05-17 20:54:53 +02:00
Dominik Picheta
d1daccac2f Fixes #5761. 2017-05-17 16:11:26 +01:00
Dominik Picheta
427aa2d395 Fixes #4893. 2017-05-17 15:07:45 +01:00
Andreas Rumpf
61a0eba14f Merge branch 'zahary' into araq2 2017-05-17 15:27:04 +02:00
Dominik Picheta
f86aca799c Remove processing hints for async procs. 2017-05-16 22:50:25 +01:00
Yuriy Glukhov
6599cae281 Async macro fixes (#5739) 2017-05-16 22:09:19 +02:00
Andreas Rumpf
503f780676 Merge branch 'zahary' into araq2 2017-05-16 17:32:18 +02:00
Federico Ceratto
fcd86883ed Add waitFor on seq[Future], waitAll and more (#5189)
* Switch to unittest and speedup

* Make timers and callbacks fields public
2017-05-16 14:36:21 +01:00
Dominik Picheta
80aa02e7f9 Merge pull request #5748 from J3RN/meet-xdg-base-directory-spec
Modified ospath's getConfigDir to meet XDG spec
2017-05-16 14:11:31 +01:00
Dominik Picheta
e6827f7cc3 Merge pull request #5819 from cdunn2001/fix-5816
Use writeable file in parsecfg.writeConfig()
2017-05-16 13:48:49 +01:00
Jacek Sieka
797301ace8 add back SIG_IGN, SIG_DFL and friends to posix.nim (#5820)
* add back SIG_IGN, SIG_DFL and friends to posix.nim

accidentally wiped by ce86b4ad78

* move deprecated sig_hold after consts include
2017-05-16 13:45:09 +01:00
Andreas Rumpf
113857c7f1 better stack trace handling 2017-05-16 14:03:33 +02:00
Christopher Dunn
117c983d13 Use writeable file in parsecfg.writeConfig()
Fixes #5816
2017-05-15 09:52:57 -05:00
Andreas Rumpf
3afd852f54 Fixes #5532 win async write (#5791)
* nimgrab tool bugfix: don't divide by zero
* fixes #5532 (asyncfile write on Windows)
* add a comment about what has been tried instead
2017-05-14 17:10:39 +02:00
Ruslan Mustakov
b826f85731 Remove unused oids import from asyncdispatch (#5811) 2017-05-14 15:07:33 +02:00
Simon Krauter
40e9e751f0 Extend documenation of formatFloat() (#5799)
Added line: "If ``precision == 0``, it tries to format it nicely." (copied from formatBiggestFloat())
2017-05-13 21:50:44 +02:00
Zahary Karadjov
f4e73344d4 covariance for arrays and sequences 2017-05-12 18:42:46 +03:00
Yuriy Glukhov
534d8a6b59 Fixed syslocks for ios (#5804) 2017-05-12 12:11:58 +02:00
Ruslan Mustakov
77cadd07f9 Fix atomicInc under vcc, C++, amd64 (#5809)
Also, fixed inconsistent behaviour of atomicInc on vcc. Previously
it would return the old value, while it must return the new value.

Fixes: #5808
2017-05-12 11:24:45 +02:00
Dominik Picheta
fa3436fb65 Deprecate osproc.select(). Refs #90. 2017-05-09 15:14:47 +01:00
Zahary Karadjov
5e368f3639 support for external types with covariant generic params 2017-05-08 21:45:37 +03:00
Christopher Dunn
2670a6f8a5 setGlobalDispatcher() 2017-05-07 22:07:07 -05:00
Ruslan Mustakov
78315792d3 Implement 'take' for Table and TableRef (#5773) 2017-05-04 22:33:52 +02:00
Andreas Rumpf
73b7edf9de Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-04 22:25:37 +02:00
Matt Riggott
c24dc7944a Add space to fix RST in captureBetween docs (#5769) 2017-05-04 20:09:24 +02:00
Ruslan Mustakov
e0059287bb Add 'hostname' param to wrapConnectedSocket 2017-05-04 16:27:08 +07:00
Andreas Rumpf
c1aa973758 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-04 10:58:21 +02:00
Dominik Picheta
27b571dd95 Fix different types for findExe's params across OS'. 2017-05-02 22:39:39 +01:00
Ruslan Mustakov
ecf278c467 Implement dial, support IPv6 in httpclient (#5763)
* Implement dial, support IPv6 in httpclient

Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``,
``asyncnet``. It merges socket creation, address resolution, and connection
into single step. When using ``dial``, you don't have to worry about
IPv4 vs IPv6 problem.

Fixed addrInfo loop in connect to behave properly.
Previously it would stop on first non-immediate failure, instead of
continuing and trying the remaining addresses.

Fixed newAsyncNativeSocket to raise proper error if socket creation
fails.

Fixes: #3811

* Check domain during connect() only on non-Windows

This is how it was in the previous implementation of connect().

* Call 'osLastError' before 'close' in net.dial

* Record osLastError before freeAddrInfo in net.dial

* Add missing docs for 'dial' proc

* Optimize dial to create one FD per domain, add tests

And make async IPv6 servers work on Windows.

* Add IPv6 test to uri module

* Fix getAddrString error handling
2017-05-02 09:25:50 +02:00
Andreas Rumpf
56a5c249c9 JS codegen: produce better code for constant sets 2017-05-01 09:30:56 +02:00
Jonathan Arnett
a9de33643b Appended to comment 2017-04-28 14:33:23 -04:00
Jonathan Arnett
9193bcaeec Modified ospath's getConfigDir to meet XDG spec
I added a check for the XDG_CONFIG_DIR environment variable to meet the [freedesktop XDG Base Directory Specification](https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html)
2017-04-28 14:33:15 -04:00