Commit Graph

1838 Commits

Author SHA1 Message Date
Dominik Picheta
202cc48903 The async macro now supports transforming multiple async procs.
This is a workaround for #3182, no forward declarations. You can now do
this:

```nim
async:
  proc bar(): Future[T]
  proc foo() = await bar()
  proc bar() {.async.} = echo(123); await foo()
```
2015-08-03 21:28:33 +01:00
Dominik Picheta
85699b744d Merge pull request #3161 from barcharcraz/fix_times_on_vcc2015
import the correct symbols on windows
2015-08-03 17:08:14 +01:00
Charlie Barto
4d6bcbc2f4 make this change VCC specific 2015-08-02 18:55:35 -04:00
jonathonf
9dde0ae3ac Set correct Host in request header
Ensure the correct destination hostname is used in the request, otherwise the request will fail in one of a number of interesting ways when using a proxy.

Fixes https://github.com/nim-lang/Nim/issues/3166
2015-08-01 20:53:37 +01:00
Charlie Barto
ad896f03e8 import the correct symbols on windows 2015-07-31 15:08:53 -04:00
Bruce Doan
55ef708e73 Free SSL handler to avoid memory leaks 2015-07-31 01:24:35 +07:00
Dominik Picheta
bd6e223065 Merge branch 'async_callback_issue_0412' of https://github.com/l04m33/Nim into l04m33-async_callback_issue_0412-2
Conflicts:
	lib/pure/asyncdispatch.nim
2015-07-26 22:03:48 +01:00
Dominik Picheta
1b9f2fdfe8 Merge pull request #3094 from fenekku/unittest-work
document unittest.nim + code agreement
2015-07-26 21:42:51 +01:00
Dominik Picheta
94ad731964 Fixes example code in marshal module. 2015-07-26 18:21:14 +01:00
Dominik Picheta
a88131ed4a Improved errors in times.parse. 2015-07-24 22:46:24 +01:00
Magnus Holm
fdf454e3ae Fix times' parse with literal strings 2015-07-24 18:08:05 +02:00
Sergey Avseyev
70f14aa578 Remove access modifiers from inner templates
Fixes options.nim tests
2015-07-23 17:00:04 +03:00
Araq
6e39f75f54 fixes regression in XML parsing 2015-07-15 22:00:44 +02:00
Araq
f7bdc205c7 documentation generator emits configurable html for code listings 2015-07-14 01:37:09 +02:00
Araq
27f5c3ceb9 added os.tailDir proc 2015-07-12 13:33:22 +02:00
Dominik Picheta
994d81461b Merge pull request #3095 from def-/fix-async-post
Fix async httpclient post to work without multipart
2015-07-11 14:06:30 +01:00
Dominik Picheta
a312808e38 Do not use errno on Windows in the `os` module. 2015-07-11 14:01:53 +01:00
Dominik Picheta
b6afa42793 Merge branch 'fix-2573-cherry-pick' of https://github.com/singularperturbation/Nim into singularperturbation-fix-2573-cherry-pick 2015-07-11 13:58:32 +01:00
def
e264fa24cd Fix async httpclient post to work without multipart 2015-07-10 00:32:39 +02:00
Andreas Rumpf
7d1a58224e Merge pull request #3093 from avsej/fix-nimdoc-for-selectors
Fix nimdoc generation for lib/pure/selectors.nim
2015-07-09 22:56:14 +02:00
Andreas Rumpf
044768690b Merge pull request #3057 from apense/patch-9
Added new Rune sequence proc
2015-07-09 19:52:24 +02:00
Andreas Rumpf
49ff09eae6 Merge pull request #3021 from apense/patch-7
Added some documentation and examples
2015-07-09 19:50:37 +02:00
apense
48b0de8ab4 Corrected proc name in assertion 2015-07-09 13:49:47 -04:00
apense
5fd7b7850a Corrected documentation 2015-07-09 13:45:20 -04:00
fenekku
464ec61e9c document unittest.nim + code agreement 2015-07-09 13:22:26 -04:00
Sergey Avseyev
7f03ad416e Fix nimdoc generation for lib/pure/selectors.nim 2015-07-09 18:36:47 +03:00
apense
1760657deb Update asyncdispatch.nim 2015-07-09 02:12:49 -04:00
Araq
a2b8b8b0dd 'sequtils doesn't take confusing default args anymore 2015-07-08 11:49:33 +02:00
Dominik Picheta
a7f769c6bd Merge pull request #3067 from apense/patch-10
Updated some example code in algorithm
2015-07-06 17:16:42 +01:00
apense
71743b5af3 Added getDaysInYear proc 2015-07-06 01:03:34 -04:00
apense
d0f2ce3ae8 Added comma
"e.g." and "i.e." both usually take commas after, as they would in normal English ("for example, ..." and "that is, ..." respectively)
2015-07-06 00:53:49 -04:00
apense
c38956a850 THash -> Hash correction 2015-07-06 00:49:34 -04:00
apense
bf58dd2141 Updated some example code in algorithm 2015-07-05 17:24:10 -04:00
apense
c334e89ee7 Renamed to toRunes 2015-07-04 15:07:29 -04:00
Sloane Simmons
b124b8b4bb Use raiseOSError with additionalInfo parameter from devel 2015-07-04 09:29:37 -05:00
apense
64b3395ade Added new proc
In reference to #2353
2015-07-03 21:33:12 -04:00
Fabian Keller
414d69ccea added hash function for ordinal types 2015-07-03 11:19:17 +02:00
Dominik Picheta
e0497112dc Remove expandTilde forward declaration 2015-07-03 00:37:42 +01:00
Andreas Rumpf
dc65f9a5f7 Merge pull request #3043 from takaomag/fix_algorithm_reversed
Fix algorithm.reversed to accept non-zero 'first' arg
2015-07-03 00:19:10 +02:00
takaomag
101e78df3b Add tests for algorithm.reversed 2015-07-02 16:39:53 +00:00
takaomag
f529e14b04 Fix algorithm.reversed to accept non-zero 'first' arg 2015-07-02 14:32:13 +00:00
Araq
9b01f1bedb Merge branch 'devel' of https://github.com/Araq/Nim into devel 2015-07-02 16:18:35 +02:00
Dominik Picheta
cb34e3721e Merge pull request #3037 from rgv151/patch-3
Implement async `post` request
2015-07-01 21:11:14 +01:00
Bruce Doan
02402d3ffd Implement async post request 2015-07-02 03:07:01 +07:00
Dominik Picheta
cb5d090cdb Moved handling of multi-line FTP replies to expectReply. 2015-07-01 21:05:45 +01:00
Dominik Picheta
d67e93340a Merge branch 'patch-1' of https://github.com/acidvertigo/Nim into acidvertigo-patch-1 2015-07-01 19:25:07 +01:00
Araq
30829ffec4 fixes #2874 2015-07-01 16:44:16 +02:00
Araq
0d7e0e1b4f fixes #2429 2015-07-01 15:47:15 +02:00
Araq
13259c669d minor doc updates 2015-07-01 15:40:29 +02:00
Araq
f315b0619c asyncdispatch compiles again on Linux 2015-07-01 11:28:18 +02:00