Andreas Rumpf
61a0eba14f
Merge branch 'zahary' into araq2
2017-05-17 15:27:04 +02:00
Andreas Rumpf
503f780676
Merge branch 'zahary' into araq2
2017-05-16 17:32:18 +02:00
Andreas Rumpf
113857c7f1
better stack trace handling
2017-05-16 14:03:33 +02: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
Zahary Karadjov
fa52cff826
hold back the new | operator for types as it creates mysterious problems fro tests/trmacros/tor
2017-04-28 18:38:08 +03:00
Zahary Karadjov
bc01835091
Allow tyOr,tyAnd and tyNot to be constructed in more contexts
2017-04-28 17:07:54 +03:00
Yuriy Glukhov
2242307c17
Added generic min/max versions for two arguments ( #5734 )
2017-04-27 21:41:10 +02:00
Jacek Sieka
0055729755
WIFSIGNALED means process has exited too (with a bang!) ( #5678 )
2017-04-27 21:39:32 +02:00
Daniil Yarancev
40f79e6cdd
Small grammar fixes in json.nim ( #5758 )
2017-04-26 20:29:53 +02:00
Daniil Yarancev
6ac37ee2fb
Small base64.nim refactor ( #5755 )
...
* Small changes (var to let)
* Some additional `var` to `let`
* Fix
* Finally removed immediate
2017-04-25 20:47:26 +02:00
Zach Smith
fa592f3aad
Minor: spelling correction in tables.nim ( #5727 )
2017-04-19 00:35:44 +02:00
Dominik Picheta
03ddfddcae
Add test for previous commit.
2017-04-17 20:04:24 +02:00
Dominik Picheta
5a4c06dbdc
Support JInt fields for 'float' in JSON umarshal macro.
2017-04-17 19:47:43 +02:00
Dominik Picheta
793d6efffb
Fixes null handling for object refs in JSON unmarshal macro.
2017-04-17 18:43:31 +02:00
Dominik Picheta
b829092c9e
Add support for BiggestInt in JSON unmarshal macro.
2017-04-17 18:01:38 +02:00
Dominik Picheta
2108dcf0d5
Fix JSON macro bug with ref objects.
2017-04-17 18:01:38 +02:00
Dominik Picheta
afb7542d20
Merge pull request #5720 from FedericoCeratto/patch-27
...
Fix cookie timestamp format #5718
2017-04-17 14:33:15 +02:00
Federico Ceratto
856d04c146
Fix cookie timestamp format #5718
...
See https://tools.ietf.org/html/rfc6265
2017-04-17 12:58:10 +01:00
Federico Ceratto
407beef7fd
Fix "secure" capitalization
...
See https://tools.ietf.org/html/rfc6265
2017-04-17 12:54:23 +01:00
Jacek Sieka
99d20f6112
fix redundant time import with different signature ( #5715 )
2017-04-16 22:50:10 +02:00
Dominik Picheta
5cf31417a6
Fixes #5710 . Closes #5711 .
2017-04-15 09:03:12 +02:00
Jacek Sieka
ce86b4ad78
Posix from detect ( #5697 )
...
* refactor posix.nim
* types move to separate files for platform-specifc and generic
("other')
* consts move to separate files that get autogenerated by detect.nim
* proc's stay where they are for now, though in a second stage might
move as well
* fix missing when
2017-04-12 23:10:54 +02:00
Jacek Sieka
e512358bc9
Linux abi take 3 ( #5692 )
...
* avoid generating object fields for imported types
* fix some abi/type issues for linux_amd64
2017-04-12 22:57:10 +02:00
Ruslan Mustakov
926563f0e6
Ignore constant-conversion warning ( #5696 )
2017-04-12 22:09:00 +02:00
Zahary Karadjov
03770daba4
allow StmtLists to pass through semExprWithType
...
This fix was necessary in order to fix the lambda lifting used in
the "jsffi" module, which relies on turning nkStmtList into nkLambda
in a catch-all dot operator.
2017-04-11 02:22:13 +03:00
Zahary Karadjov
a3f19c87fb
lift parameter-less do block to lambdas
2017-04-10 23:58:05 +03:00
Zahary Karadjov
48a1a54d1c
improve the usability of the jsffi module
...
* All JavaScript operators are usable with JsObject
* The dot operators will use native JavaScript strings
* Results returned from dot calls are consired discardable
2017-04-09 23:04:55 +03:00
Dominik Picheta
c9c64240d3
Fixes ambiguity introduced by #5390 .
2017-04-09 20:27:28 +02:00
Dominik Picheta
88cb40cd31
Implement support for enum fields in JSON macro.
2017-04-09 17:22:40 +02:00
Dominik Picheta
bd58a0d67c
Use doAssert in JSON macro and improve diagnostics.
2017-04-09 17:04:31 +02:00
Dominik Picheta
4bd650ee42
Merge branch 'feature/json-macro' into devel
2017-04-09 13:11:09 +02:00
Dominik Picheta
7ac0c15e7a
Improve documentation in the JSON module.
2017-04-09 13:09:59 +02:00
Dominik Picheta
eedc6fecd7
Document to macro in JSON and add example.
2017-04-09 12:48:07 +02:00
Dominik Picheta
a883424d0d
Implements else branch for JSON unmarshalling of object variants.
2017-04-09 11:49:50 +02:00