Jacek Sieka
0d45c17388
disable StringStream for JS (needs copyMem)
2016-06-08 22:00:13 +08:00
Jacek Sieka
fe2b39f007
remove system/ansi_c include from os
2016-06-05 20:16:26 +08:00
Jacek Sieka
64b0485207
fix types of ansi_c/sysio to more closely match C ABI
...
also fixes some instances of using C library functions when there are
nim alternatives available
2016-06-05 12:03:20 +08:00
A. S. Budden
695b25100c
Changed math.nim tests to use newly defined ==~ operator
2016-05-31 15:53:18 +01:00
A. S. Budden
1b9c66d720
Correction to round0 following review.
2016-05-31 15:16:50 +01:00
A. S. Budden
46a2993917
Implemented function to split floating point numbers at the decimal place (equivalent to C's modf function). Fixes #4195 .
2016-05-31 13:26:41 +01:00
A. S. Budden
0cc7c9a13c
Modification to implementation of round() such that it returns a float and accepts a places argument ( fixes #3473 ).
...
This also involved moving some functions around to get the hierarchy correct and the documentation for frexp was modified such that it was clear that it can return a float in either the range [-1, -0.5] or [0.5, 1].
2016-05-31 13:17:40 +01:00
Andreas Rumpf
1a88c01f92
documentation build cleaned up
2016-05-31 03:04:45 +02:00
Dominik Picheta
ef303e5a10
Merge pull request #4241 from moigagoo/devel
...
Stdlib: asyncdispatch: Add proc `all`.
2016-05-30 23:36:31 +01:00
Andreas Rumpf
3cedf3e887
make test green
2016-05-30 17:40:13 +02:00
Andreas Rumpf
b3a3f01d19
fixes #4221
2016-05-30 16:28:20 +02:00
Andreas Rumpf
5edbc20e13
fixes #4238
2016-05-30 16:24:52 +02:00
Andreas Rumpf
95bb19a579
moved random procs from math to its own module (breaking change)
2016-05-30 16:24:52 +02:00
Andreas Rumpf
5575cfd3ec
added pure Nim random stdlib module
2016-05-30 16:24:52 +02:00
Konstantin Molchanov
67ae65064c
Stdlib: asyncdispatch: Add proc all.
2016-05-30 17:30:14 +04:00
cheatfate
2264bd6097
Adding OpenBSD to defines
2016-05-30 14:39:29 +03:00
cheatfate
b7f2058833
Resolve #3059
...
Make getTimezone() to work properly on FreeBSD and NetBSD.
2016-05-30 13:18:31 +03:00
Dominik Picheta
a484e3f8c2
Merge branch 'unix-sockets' of https://github.com/girvo/Nim into girvo-unix-sockets
2016-05-30 09:38:37 +01:00
Josh Girvin
b662d22ad1
Adding nimdoc comments as per PR comments
...
As per @dom96 code review comments in PR #3488
2016-05-30 16:29:38 +10:00
Andreas Rumpf
0ef7d802ca
Merge branch 'patch-8' of https://github.com/apense/Nim into apense-patch-8
2016-05-30 02:04:25 +02:00
Andreas Rumpf
380524caa8
Merge pull request #3648 from FedericoCeratto/reuse_port
...
Add SO_REUSEPORT support
2016-05-29 22:21:56 +02:00
Andreas Rumpf
eba3355393
adds another 'open' to parsecsv; refs #3695
2016-05-28 19:53:43 +02:00
Andreas Rumpf
48f3054404
Merge pull request #4135 from FedericoCeratto/patch-8
...
Add another JSON example
2016-05-28 19:42:24 +02:00
Andreas Rumpf
4e83a24662
Merge branch 'maxsplit' of https://github.com/mjoud/Nim into mjoud-maxsplit
2016-05-28 17:50:36 +02:00
Konstantin Molchanov
6075bd4231
Stdlib: httpclient: export strtabs added.
...
When using `httpclient`, viewing HTTP headers is impossible without importing `strtabs`, which is very much _not_ obvious; it's impossible to know without deep diving into the docs.
Dealing with headers is an essential part of working with HTTP in general, so I propose this change. The situation is analogous to this one with `nre` and `options`: https://github.com/nim-lang/Nim/issues/4158
2016-05-28 10:25:36 +04:00
cheatfate
49c50e4e21
Introduce template withValue() for tables.nim too.
2016-05-27 01:00:05 +03:00
cheatfate
a2393d0593
Introduce template withValue()
2016-05-26 15:32:14 +03:00
Andreas Rumpf
301d39b882
Merge pull request #4130 from lihf8515/devel
...
Update parsecfg.nim
2016-05-26 10:51:10 +02:00
cheatfate
d4f3db3bd0
Resolve bugs
2016-05-24 01:37:31 +03:00
cheatfate
b27ee842d4
Resolve #4200
...
Resolve [Deprecated] warning for raiseOsError at line 878
2016-05-24 00:33:05 +03:00
def
834ad57d94
Fix toRational overflow by calculating internally with int64s ( fixes #4194 )
2016-05-22 18:09:55 +02:00
cheatfate
aba60e54d5
Resolve bugs with deep recursion of asyncdispatch.
...
Introduce callSoon() implementation.
Patch tests to use waitFor() instead of asyncCheck()
2016-05-18 00:53:53 +03:00
Dominik Picheta
f4f7edf00f
Merge pull request #4075 from yglukhov/json
...
Json serialization for openarrays and objects
2016-05-15 12:39:26 +01:00
Lompiktab
72ba30d0a9
Fix 2 compile errors in LockFreeHash.nim
...
* type mismatch in range (line 55)
* invalid indentation (line 249)
2016-05-14 09:41:35 +04:00
Stephane Fontaine
fbd6291f2f
Fix missing ]
...
other nim can't parse the file.
Introduced in 192ba3bbc0 (diff-1a01187da2fad29f03da8ce36ffe1f91)
2016-05-13 22:14:22 +04:00
Yuriy Glukhov
6e135468f8
Json serialization for openarrays and objects
2016-05-13 17:25:40 +03:00
Dominik Picheta
299989f3aa
Restore sanity check for bytesReceived in asyncdispatch.
2016-05-13 13:41:46 +01:00
cheatfate
6fa6fdeb34
Resolve bugs based on unreliable bytesReceived value.
2016-05-12 21:11:42 +03:00
Andreas Rumpf
c02963bcea
Pegs: fixes edge case
2016-05-12 01:36:23 +02:00
Andreas Rumpf
34110fc118
Merge pull request #4136 from oderwat/HARA-peg-replace-cb
...
Added a replace() with callback to pegs.
2016-05-11 23:31:22 +02:00
Araq
e101773d8b
added scanp macro as an alternative to pegs
2016-05-10 22:03:07 +02:00
Araq
33aeadab73
minor whitespace change
2016-05-10 22:03:07 +02:00
Araq
b357e80833
added strscans stdlib module
2016-05-10 22:03:07 +02:00
Araq
c55ff72ea7
split too long lines
2016-05-10 22:03:07 +02:00
Hans Raaf
fcfe27a1f8
Added a replace() proc using a callback to pegs.
...
I was missing a nice way to use pegs with a more specialized replace
functionality. Here my try to create a universal and versatile version
of replace for that.
2016-05-07 17:53:43 +02:00
Federico Ceratto
36be28aa47
Add another JSON example
...
JSON generation can be a bit tricky, another example might help
2016-05-05 22:02:48 +01:00
lihf8515
42bd3fd953
Update parsecfg.nim
2016-05-02 17:00:58 +08:00
niv
5da7f28990
pure/logging: add notice level, suggest usecases
2016-05-01 12:51:36 +02:00
Dominik Picheta
d2b191dc73
Merge pull request #4122 from yglukhov/binheap
...
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 16:45:32 +01:00
Yuriy Glukhov
1a8f784834
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 00:04:32 +03:00